SaveAs method

Microsoft Visio Developer Reference

SaveAs method

       

Saves a document with a file name.

Version added

2.0

Syntax

object.SaveAs fileName

object

Required. An expression that returns a Document object.

fileName

Required String. The file name for the document.

Remarks

The SaveAs method can accept drive names using the universal naming convention (UNC), for example, \\corporation\marketing.

Beginning with Visio 2002, you can save your drawing as an XML drawing (.vdx), an XML stencil (.vsx), or an XML template (.vtx).