ProtectedForForms Property

Applies To

Section object.

Description

True if the specified section is protected for forms. When a section is protected for forms, you can select and modify text only in form fields. Read/write Boolean.

Note To protect an entire document, use the Protect method of the Document object.

See Also

Protect method, ProtectionType property, Shaded property.

Example

This example protects the second section in the active document for forms.

If ActiveDocument.Sections.Count >= 2 Then _
    ActiveDocument.Sections(2).ProtectedForForms = True
This example unprotects the first section in the selection.

Selection.Sections(1).ProtectedForForms = False
This example toggles the protection for the first section in the selection.

Selection.Sections(1).ProtectedForForms = Not _
    Selection.Sections(1).ProtectedForForms