ToolsUnprotectDocument

Syntax

ToolsUnprotectDocument [.DocumentPassword = text]

Remarks

Removes protection from the active document. If the document is not protected, an error occurs.

Argument

Explanation

.DocumentPassword

The password, if any, used to protect the document. Note that passwords are case-sensitive.

If the document is protected with a password and you don't specify .DocumentPassword, a dialog box prompts the user for the password.


See Also

DocumentProtection(), ToolsProtectDocument, ToolsProtectSection