J
JHARRIS133
Hello, I'm trying to enable spell checking for a protected document. The
first thing I tried was to enable the SpellCheck option in the Tools menu
when the document is opened. This did not work at all.
I have now figured out how to do this programmatically, using the
ActiveDocument.CheckSpelling command. I've removed protection temporarily
and reinstated it once the spellcheck is complete. My problem is that when I
run this, it only checks it one time and then stops. Is there something else
that needs to be done. My form has both textboxes and fields on it. Here is
the relevant code (I've ommitted the password, but it is present as well):
ActiveDocument.Unprotect
ActiveDocument.CheckSpelling
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
Please help!
first thing I tried was to enable the SpellCheck option in the Tools menu
when the document is opened. This did not work at all.
I have now figured out how to do this programmatically, using the
ActiveDocument.CheckSpelling command. I've removed protection temporarily
and reinstated it once the spellcheck is complete. My problem is that when I
run this, it only checks it one time and then stops. Is there something else
that needs to be done. My form has both textboxes and fields on it. Here is
the relevant code (I've ommitted the password, but it is present as well):
ActiveDocument.Unprotect
ActiveDocument.CheckSpelling
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
Please help!