Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Spellcheck in protected forms
I copied the code into a macro from
http://word.mvps.org/FAQs/MacrosVBA/...ProtectDoc.htm. I ran the macro and got the following run-time error: '4605' The Type method or property is not available because the document is a protected document. In item 2 on the SpellcheckProtectDoc.htm, it says to put the password in the code. Would this be causing the error, and if so, where exactly in the code do these two strings belong? (oDoc.Unprotect Password:="Password") and (oDoc.Protect Type:wdAllowOnlyFormFields, NoReset:=True, Password:="Password" Thank you!! |
#2
|
|||
|
|||
Nevermind - I found it. I entered both lines of code after the following
comments: 'If we've got this far, it's protected for forms 'Now unprotect the document '************************ Now the spell check works, no errors. Hopefully it'll work the same on other pc's. "Leslie" wrote: I copied the code into a macro from http://word.mvps.org/FAQs/MacrosVBA/...ProtectDoc.htm. I ran the macro and got the following run-time error: '4605' The Type method or property is not available because the document is a protected document. In item 2 on the SpellcheckProtectDoc.htm, it says to put the password in the code. Would this be causing the error, and if so, where exactly in the code do these two strings belong? (oDoc.Unprotect Password:="Password") and (oDoc.Protect Type:wdAllowOnlyFormFields, NoReset:=True, Password:="Password" Thank you!! |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to use ink on a protected Word 2003 document (forms - signatu. | Microsoft Word Help | |||
How to enable spellcheck in protected template (Word 2000) | Microsoft Word Help | |||
How can I use spellcheck in a protected Word document set up as a. | Microsoft Word Help | |||
Links in protected forms? | Microsoft Word Help | |||
Spellcheck macro in FORMS - compile error | Microsoft Word Help |