DocumentProtection()

Syntax

DocumentProtection()

Remarks

Returns a value specifying the protection mode of the active document. To change the current protection mode, use ToolsProtectDocument. In Word version 6.0, DocumentProtection() is unavailable and generates an error.

Value

Explanation

0 (zero)

The document is not protected.

1

Users can only select and modify text in form fields.

2

Users can only add annotations.

3

Users can select and edit text, but all changes are tracked with revision marks.


See Also

ToolsProtectDocument, ToolsUnprotectDocument