Table of contents
Collapse the table of content
Expand the table of content

Document.ReadOnly Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns True if the publication is read-only; returns False if it is read/write. Read-only Boolean.


expression. ReadOnly

_expression_A variable that represents a Document object.

Return Value



This example saves the active publication and notifies the user that the file is saved and whether it is read-only.

Sub SaveAndStatus() 

 Dim bStatus As Boolean 

 Application.ActiveDocument.SaveAs "c:\" 
 bStatus = Application.ActiveDocument.ReadOnly 
 MsgBox "File Saved and Read-only Status = " &; bStatus 

End Sub
© 2018 Microsoft