Saved property
Determines whether a document has any unsaved changes.
Version added
2.0
Syntax
| |
| |
boolRet |
Boolean. True if the document has no unsaved changes; otherwise, False. |
object |
Required. An expression that returns a Document object. |
boolExpression |
Required Boolean. True to indicate the document is saved; False to indicate unsaved changes. |
Remarks
Setting the Saved property for a document to True should be done with caution. If you set the Saved property to True and a user, or another program, makes changes to the document before it is closed those changes will be lost—Visio does not provide a prompt to save the document.
A document that contains embedded or linked OLE objects may report itself as unsaved even if the document's Saved property is set to True.