Unprotect a form ? 
Author Message
 Unprotect a form ?

I need some basic help,

    I am looking to edit some protected templates that I
already have created with a macro.
    What code to I use to unprotect the form upon opening,
and then reprotect it after the edits have been made?



Tue, 30 Nov 2004 21:45:11 GMT  
 Unprotect a form ?
Hi Dan

This article gives an example of unprotecting a form and then reprotecting
it after editing

How to enable the spellchecker in a protected document
http://www.mvps.org/word/FAQs/MacrosVBA/SpellcheckProtectDoc.htm

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
Word FAQs at http://www.multilinker.com/wordfaq
Please post any follow-up in the newsgroup. I do not reply to Word questions
by email



Quote:
> I need some basic help,

>     I am looking to edit some protected templates that I
> already have created with a macro.
>     What code to I use to unprotect the form upon opening,
> and then reprotect it after the edits have been made?



Tue, 30 Nov 2004 22:49:42 GMT  
 Unprotect a form ?
Hi, Daniel,

The Document object has methods .Protect and .UnProtect. Look them up in the VBA
help to see which parameters to use. The NoReset parameter of the .Protect
method is particularly useful.

See the code sample in the article at
http://www.mvps.org/word/FAQs/MacrosVBA/SpellcheckProtectDoc.htm for a working
example.

--
Regards,
Jay Freedman
Microsoft Word MVP        Word MVP FAQ site: http://www.mvps.org/word

Quote:

> I need some basic help,

>     I am looking to edit some protected templates that I
> already have created with a macro.
>     What code to I use to unprotect the form upon opening,
> and then reprotect it after the edits have been made?



Sat, 04 Dec 2004 05:10:14 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Protecting and Unprotecting a form deletes entries !?!?!

2. Loss of form field text after unprotecting and protecting a form

3. Maitaining form field info when unprotecting and reprotecting a document

4. userform protect unprotect, form fields problem

5. Userfrom, protect-unprotect, form fields missing

6. unprotect, add approval signature graphic, protect form again

7. User Forms and Protect/Unprotect

8. Problem when unprotecting a document with form field text fields

9. Unprotect VBA project

10. Protect / Unprotect Excel 97

11. VB Program hangs when I try to unprotect word document with password

12. VBA function to manipulate word documents (unprotecting / changing passwords)

 

 
Powered by phpBB® Forum Software