Document.Close method (Visio)
Closes a document.
Syntax
expression.Close
expression A variable that represents a Document object.
Return value
Nothing
Remarks
If the indicated window is the only window open for a document and the document contains unsaved changes, an alert appears asking if you want to save the document. Use the AlertResponse property to prevent the alert from appearing.
If you close a docked stencil window, only that window is closed. However, if you close a drawing window that contains docked stencils, the docked stencil window is also closed.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.