View Single Post
  #1 (permalink)  
Old January 27th, 2007, 01:05 PM
David Mulvey David Mulvey is offline
Registered User
Join Date: Jan 2007
Location: Atascadero, CA, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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_

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?

Reply With Quote