L
Leslie
I copied the code into a macro from
http://word.mvps.org/FAQs/MacrosVBA/SpellcheckProtectDoc.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!!
http://word.mvps.org/FAQs/MacrosVBA/SpellcheckProtectDoc.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!!