Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
protect_unprotect word form for specific sections
I have a password protected form w/fields that I need to unprotect to allow a
macro to run. Initially - I need to unprotect the entire document, but then re-lock specific sections. Programatically, how can this be accomplished? Please demonstrate. Best regards Lenny |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
protect_unprotect word form for specific sections
Generally, for each section, you can decide if it should be protected or
not, by setting the ProtectedForForms property. For example: ActiveDocument.Sections(1).ProtectedForForms = False ' Not protected ActiveDocument.Sections(2).ProtectedForForms = True ' Protected 'add more sections if desired... (Of course, this simple example assumes that the document has at least two sections.) -- Stefan Blom Microsoft Word MVP "Lenny" wrote in message ... I have a password protected form w/fields that I need to unprotect to allow a macro to run. Initially - I need to unprotect the entire document, but then re-lock specific sections. Programatically, how can this be accomplished? Please demonstrate. Best regards Lenny |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I protect specific sections but not others? | Microsoft Word Help | |||
Can I extract specific sections from a Word Doc automatically? | Microsoft Word Help | |||
Printing specific pages or sections, esp. in mail-merged documents | Microsoft Word Help | |||
does .doc form need specific version of word to use the form. | Microsoft Word Help | |||
protect form sections only with objects in other sections | Microsoft Word Help |