

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.

Specifies whether formatting restrictions are enforced for a protected document. If you want to completely protect your Word document from unauthorized access, the simplest method is to use the Word menu File and select the Protect. Go to the document, click File > Info and then you can select Protect document This.

Specifies whether to use Information Rights Management (IRM) when protecting the document from changes. How to protect a document If you protect a document, you protect it against accidental changes. If supplied, the password to be able to edit the document, or to change or remove protection. After you've added password protection, you’ll need to use the Word desktop program to open the document. If you want to protect the file with a password, click or tap Open in Word to open your document in the desktop version of Word. If Type is not wdAllowOnlyFormFields, NoReset is ignored. Word Online can’t encrypt a document with a password, and it can’t edit documents encrypted with a password. If youre unable to start enforcing protection. Parameters Nameįalse to reset form fields to their default values True to retain the current form field values if the document is protected. In Microsoft Word 2013 you can use the Restrict Editing panel to enforce protection in your document. /rebates/&252ffile-lock-tips252fprotect-word-file-from-editing. Protect ( Type, NoReset, Password, UseIRM, EnforceStyleLock)Įxpression A variable that represents a Document object. Protects the specified document from unauthorized changes.
