p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Word VBA (http://p2p.wrox.com/forumdisplay.php?f=231)
-   -   Password Protection for partailly locked template (http://p2p.wrox.com/showthread.php?t=53281)

David Mulvey January 27th, 2007 01:05 PM

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?



All times are GMT -4. The time now is 04:20 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.