ReadOnly Property
Applies To
Dictionary object, Document object, RecentFile object.
Description
Document or RecentFile object: True if changes to the document cannot be saved to the original document. Read/write Boolean for the RecentFile object; read-only Boolean for the Document object.
Dictionary object: True if the specified dictionary cannot be changed. Read-only Boolean.
Note The active grammar, hyphenation, spelling, and thesaurus dictionaries are read-only. Custom dictionaries are read/write.
See Also
Open method, ReadOnlyRecommended property, RecentFiles property.
Example
This example saves the active document if it isn't read-only.
If ActiveDocument.ReadOnly = False Then ActiveDocument.Save
This example opens the most recently used file as a read-only document.
With RecentFiles(1)
.ReadOnly = True
.Open
End With