Application.Quit method (Visio)

Closes the indicated instance of Microsoft Visio.

Syntax

expression.Quit

expression A variable that represents an Application object.

Return value

Nothing

Remarks

If the Quit method is invoked when any open document has unsaved changes, a dialog box appears asking if you want to save the document. To quit the application without saving and seeing the dialog box, set the Saved property of the Document object representing the document to True immediately before quitting. Set the Saved property to True only if you are sure you want to close the document without saving changes, because you will lose any unsaved changes.

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.