Enable SpellChecking for protected fields

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top