-
Notifications
You must be signed in to change notification settings - Fork 0
SaveAs.cs
Avrigeanu Laurian edited this page Apr 12, 2023
·
1 revision
-
filePath
(string): The full file path to save the Excel file to. -
format
(XlFileFormat): The format of the Excel file to be saved.
-
string
: A message confirming that the Excel file has been saved to the specified location with the specified format.
- This method saves the current workbook as an Excel file with the specified format to the specified file path.
- The
XlFileFormat
enumeration contains values that represent the file formats that Excel can save to, such asxlOpenXMLWorkbook
for .xlsx format orxlExcel12
for .xlsb format. - If the file specified by
filePath
already exists, it will be overwritten. - If the file format specified by
format
is not compatible with the current workbook, an exception will be thrown.