Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Lenny Lenny is offline
external usenet poster
 
Posts: 74
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I protect specific sections but not others? Nichole0516 Microsoft Word Help 1 August 9th 06 08:18 PM
Can I extract specific sections from a Word Doc automatically? CRobb Microsoft Word Help 1 March 22nd 06 06:04 AM
Printing specific pages or sections, esp. in mail-merged documents Beachie Microsoft Word Help 1 August 23rd 05 04:33 PM
does .doc form need specific version of word to use the form. sv Microsoft Word Help 2 May 18th 05 10:36 PM
protect form sections only with objects in other sections cmath Microsoft Word Help 1 April 9th 05 05:31 PM


All times are GMT +1. The time now is 09:36 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"