Export (0) Print
Expand All

How to: Programmatically Close Visio Documents

You can close the active Microsoft Office Visio document by using the Microsoft.Office.Interop.Visio.Document.Close method.

For details about this method, see the VBA reference documentation for the Microsoft.Office.Interop.Visio.Document.Close method.

To close the active document

  • Call the Microsoft.Office.Interop.Visio.Document.Close method to close the active document.

    To use the following code example, run it in the ThisAddIn class in an application-level project for Visio.

    this.Application.ActiveDocument.Close();
    
Show:
© 2015 Microsoft