View Single Post
  #10   Report Post  
Posted to microsoft.public.word.docmanagement
Bear[_2_] Bear[_2_] is offline
external usenet poster
 
Posts: 314
Default spell check in protected forms

Dorothy:

Word is complaining because it thinks you have a macro open and in break
mode. If you can just end your Word session and start again, I'm hoping it
will close the macro and set things back the way you want.

You can protect a document for forms use without assigning a password.
You're the one that has to decide whether or not to use one. Protecting a
document for Forms use just enables the "formlike behavior" of the form. I.E.
everything gets protected from mistakes, and the Tab key gets you from field
to field, etc.

If you don't use a password, then your users *can* manually unprotect the
document and make unauthorized changes, as you've described. But this may not
be so big a problem or danger as to require password protection.

If you want to use password protection, and if you're the only one who knows
the password, then you could hard-code your password into the macro code and
password-protect your code as well so only you would be able to see the
password. Then the code would still be able to unprotect the form for
spell-check.

You'd change the unprotect statement to something like this:

ActiveDocument.Unprotect Password:="Blue"

where Blue is your password, and in the statement, you put double quotes
around it.

Then before you distribute your template, you'd open the VBE (Alt + F11) and
click Tools [project name] - Properties Protection. Then you check the
Lock Project for Viewing check box and enter and confirm a password. This is
the password to lock the template so the users can't examine your code to
find the form password.

It might be simpler just to ask your users not to make any changes.

Bear


--
Windows XP, Word 2000