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

Document.Saved Property (Publisher)

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

Returns True if no changes have been made to a publication since it was last saved. Read-only Boolean.


expression. Saved

_expression_A variable that represents a Document object.

Return Value



If the Saved property of a modified publication returns True, the user won't be prompted to save changes when closing the publication, and all changes made to it since it was last saved will be lost.


This example saves the active publication if it has been changed since the last time it was saved.

Sub Saver() 

 With Application.ActiveDocument 
 If Not .Saved And .Path <> "" Then .Save 
 End With 

End Sub
© 2018 Microsoft