Document.SaveAs Method (Visio)
Saves a document and gives it a file name.
The SaveAs method can accept drive names that use 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).
If your Visual Studio solution includes the Microsoft.Office.Interop.Visio reference, this method maps to the following types:
This Microsoft Visual Basic for Applications (VBA) macro shows how to use the SaveAs method. Before running this macro, change path to the location where you want to save the drawing, and change filename to the name you'd like to assign the file.