SaveAs Method

Saves the Excel document to file, using another file name.

Syntax

Sub SaveAs(path)


Parameters


path

Type: String

The file path to save the Excel document to



Return Value


None

Examples

IronPython

#Save Excel document using another file name

doc = VSExcelDocument("D:\Data\Tabular.Transaction.Header.xlsx", FileMode.Open)
doc.SaveAs("D:\Data\Temp\myCopy.xlsx")


C#

//Save Excel document using another file name

VSExcelDocument doc = new VSExcelDocument(@"D:\Data\Tabular.Transaction.Header.xlsx", FileMode.Open);
doc.SaveAs(@"D:\Data\Temp\myCopy.xlsx");

Remarks