ReadOnly Property
ReadOnly property as it applies to the Dictionary and Document objects.
Dictionary object: True if the specified dictionary cannot be changed. Read-only Boolean.
Document object: True if changes to the document cannot be saved to the original document. Read-only Boolean.
expression.ReadOnly
expression Required. An expression that returns one of the above objects.
Note The active grammar, hyphenation, spelling, and thesaurus dictionaries are read-only. Custom dictionaries are read/write.
ReadOnly property as it applies to the RecentFile object.
True if changes to the document cannot be saved to the original document. Read/write Boolean.
expression.ReadOnly
expression Required. An expression that returns a RecentFile object.
Example
As it applies to the Dictionary and Document objects.
This example saves the active document if it isn't read-only.
If ActiveDocument.ReadOnly = False Then ActiveDocument.Save
As it applies to the RecentFile object.
This example opens the most recently used file as a read-only document.
With RecentFiles(1)
.ReadOnly = True
.Open
End With
Applies to | Dictionary Object | Document Object | RecentFile Object
See Also | Open Event | ReadOnlyRecommended Property | RecentFiles Property