Syntax
ToolsProtectSection .Protect = number [, .Section = number]
Remarks
Enables or disables protection for sections within a document when the document is protected for forms with ToolsProtectDocument. ToolsProtectSection has no effect if the document is protected for annotations or revision marks.
Argument | Explanation | |
.Protect | Specifies whether to enable or disable protection for the specified section: 0 (zero) or omitted Disables protection. 1 Enables protection. | |
.Section | The section for which you want to enable or disable protection: 1 corresponds to the first section, 2 to the second section, and so on. |
Example
This example protects a document for forms, but disables protection for the second section of the document:
ToolsProtectDocument .Type = 2 ToolsProtectSection .Section = 2, .Protect = 0
See Also
DocumentProtection(), ToolsProtectDocument, ToolsUnprotectDocument