Skip to main content

Save as

Save the workbook to a new file as xlsx, xls or csv, optionally password-protected; after xlsx or xls the session continues on the new file.

Command in the Excel toolkit · id ooa.excel/save_as · 6 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesTarget file path.
FormatStringNoFile format; taken from the file extension when empty.
SheetStringNoSheet written for csv; active sheet when empty.
SessionStringNoexcelWorkbook session.
OverwriteBooleanNotrueReplace a file that already exists at the target path; false stops with EXCEL.EXISTS.
PasswordCredentialNoEncrypt the new xlsx or xls file with this password; later saves keep it. Not used for csv.