S
Sandy
I have copied and pasted the code from the Word MVP site
regarding using spell check for a protected form. I'm
really new at vba and only added the password information
as stated at the end of the article. My problem is this,
it doesn't work and I'm not clear on why.
I unprotected the form
Clicked on Tools, Macro, Record New Macro, gave it a name,
stopped recording.
Back to Tools, Marcro, Macros, Stepped into SpellCheck
Macro, Pasted code copied from article.
Modified the oDoc.Unprotect line to read: oDoc.Uprotect
Password:="XXXX"
Modified the oDoc.Protect Type:=wdAllowOnlyFormFields,
NoRest:=True to readDoc.Protect
Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="XXX"
I saved and closed the VB window. Protected the form and
saved. Clicked on Tools and Spellcheck is greyed out.
Clicked on Tools, Macro, SpellChecker, Run and nothing
happens.
MSWord 2002
Any help is greatly appreciated.
Thanks,
sandy
regarding using spell check for a protected form. I'm
really new at vba and only added the password information
as stated at the end of the article. My problem is this,
it doesn't work and I'm not clear on why.
I unprotected the form
Clicked on Tools, Macro, Record New Macro, gave it a name,
stopped recording.
Back to Tools, Marcro, Macros, Stepped into SpellCheck
Macro, Pasted code copied from article.
Modified the oDoc.Unprotect line to read: oDoc.Uprotect
Password:="XXXX"
Modified the oDoc.Protect Type:=wdAllowOnlyFormFields,
NoRest:=True to readDoc.Protect
Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="XXX"
I saved and closed the VB window. Protected the form and
saved. Clicked on Tools and Spellcheck is greyed out.
Clicked on Tools, Macro, SpellChecker, Run and nothing
happens.
MSWord 2002
Any help is greatly appreciated.
Thanks,
sandy