Document.Save Method

Visio Automation Reference

Saves a document.

Version Information
 Version Added:  Visio 2.0

Syntax

expression.Save

expression   A variable that represents a Document object.

Return Value
Integer

Remarks

To save and name a new document, use the SaveAs method. Until a document has been saved, the Save method generates an error.

Example

The following macro shows how to save a Microsoft Office Visio document.

Visual Basic for Applications
  Public Sub Save_Example()
ThisDocument.Save
Debug.Print "Document saved."

End Sub

See Also