Quit method

Microsoft Visio Developer Reference

Quit method

   Example   

Closes the indicated instance of Microsoft Visio.

Version added

2.0

Syntax

object.Quit

object

Required. An expression that returns an Application object.

Remarks

If the Quit method is invoked when a document with unsaved changes is open, 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.