Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 27th, 2007, 01:05 PM
Registered User
Join Date: Jan 2007
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?

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

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