ReadOnly Property
Collapse the table of content
Expand the table of content

Document.ReadOnly Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True if changes to the document cannot be saved to the original document. Read-only Boolean.

expression .ReadOnly

expression Required. A variable that represents a Document object.

This example saves the active document if it isn't read-only.

If ActiveDocument.ReadOnly = False Then ActiveDocument.Save
© 2016 Microsoft