Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 27th, 2007, 01:05 PM
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_
        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?

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decompile Protection Eudora Servlets 0 July 18th, 2005 09:59 PM
Protection evad Excel VBA 0 April 26th, 2005 09:06 AM
Protection and commandButtons bahachin Excel VBA 3 March 4th, 2005 09:27 AM
Password Protection and Other Items snoopy92211 Excel VBA 1 January 14th, 2005 02:27 AM



All times are GMT -4. The time now is 12:24 PM.


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