Form Protection

  • Thread starter Thread starter Gene
  • Start date Start date
G

Gene

Hello everyone:

Word XP has the ability to protect forms by section. I
have upgraded to Word 2003 at work and I cannot find the
ability to protect Forms by section.

I have also tried to use the following code to protect by
section but it has not worked:

If ActiveDocument.Sections.Count > 1 Then _
ActiveDocument.Sections(1).ProtectedForForms = True

I have a document with 2 sections and the Form Fields are
in the first section. I need to protect the first section
while allowing the second to be edited.

Thanks for any help!
Does anyone have any suggestions?
 
Hi Gene,

Either by Tools > Protect Document or by selecting from the dropdown in the
task pane header, display the Protect Document task pane. Check the box in
section 2 for "Allow only this type of editing", and select "Fill in forms"
from the dropdown. Then, if the document has two or more sections, the link
"Select sections" will appear. Click the link and, in the resulting dialog,
clear the checkbox for Section 2. OK the dialog, then click the Start
Enforcing Protection button in the task pane. Enter a password if desired,
and OK the final dialog.

In code, you need to protect the entire document first, and then remove the
protection from Section 2:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields
ActiveDocument.Sections(2).ProtectedForForms = False
 
Thanks Jay!

Works perfectly (tested both).
-----Original Message-----
Hi Gene,

Either by Tools > Protect Document or by selecting from the dropdown in the
task pane header, display the Protect Document task pane. Check the box in
section 2 for "Allow only this type of editing", and select "Fill in forms"
from the dropdown. Then, if the document has two or more sections, the link
"Select sections" will appear. Click the link and, in the resulting dialog,
clear the checkbox for Section 2. OK the dialog, then click the Start
Enforcing Protection button in the task pane. Enter a password if desired,
and OK the final dialog.

In code, you need to protect the entire document first, and then remove the
protection from Section 2:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields
ActiveDocument.Sections(2).ProtectedForForms = False

--
Regards,
Jay Freedman
Microsoft Word MVP



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top