spell check macro

G

Guest

I am using the macro from MVP site. I was able to get it to work fine when I
assigned it to a control button. Then I moved the buton into a text box so
that it wouldn't show when printing the document and now it doesn't work.
The macro stops at this point.

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True,
Password:="anderson12"

This code is all on one line, it just splits it on 2 here. I have also
tried using odoc instead of activedocument and this doesn't work either.

Can anyone help?
Thanks Mike Anderson
 
D

Doug Robbins - Word MVP

Less unlikely to get a solution here than in the vba newsgroups to which you
posted this, but when I try to execute that line of code from a macrobutton
inside a textbox, I get the following error message:

Run-time error '4641':

The ToolsProtectDocument statement is currently disabled.

That's enough to convince me that you cannot do what you are trying to do.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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