Share via


How to: 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.

Closing the Active Document

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.

    Me.Application.ActiveDocument.Close()
    
    this.Application.ActiveDocument.Close();
    

See Also

Tasks

How to: Create New Visio Documents

How to: Open Visio Documents

How to: Save Visio Documents

How to: Print Visio Documents

Concepts

Visio Object Model Overview

Other Resources

Visio Solutions