如果为 True,则保护指定的节中的窗体。当保护节中的窗体后,将只能选择和修改窗体域中的文本。Boolean 类型,可读写。
expression.ProtectedForForms
expression 必需。该表达式返回一个 Section 对象。
若要保护整个文档,请用 Document 对象的 Protect 方法。
本示例保护活动文档第二节中的窗体。
If ActiveDocument.Sections.Count >= 2 Then _
ActiveDocument.Sections(2).ProtectedForForms = True
本示例取消对所选内容中第一节的保护。
Selection.Sections(1).ProtectedForForms = False
本示例切换对所选内容中第一节的保护状态。
Selection.Sections(1).ProtectedForForms = Not _
Selection.Sections(1).ProtectedForForms