Password Protection for partailly locked template
I am useing
ActiveDocument.Sections(secnum).ProtectedForForms = False
to unprotect specific section of a document created by my template (so spell check will operate)
This works fine except that if I try to password protect the document protection (to keep users from unlocking the resulting document)
ActiveDocument.Protect _
Type:=wdAllowOnlyFormFields, NoReset:=True_
Password:="test"
I generate an error when I the unprotect code executes (without the password it works fine)
Any suggestions on how I can keep users from unprotecting this partiall protected document?
|