Skip to main content

Save Excel

Saves the Excel file to the specified path or saves changes to the current file location.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing the node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If ContinueOnError property is true, no error is caught when the project is executed even if the Catch node is used.

Input

  • File Descriptor - File descriptor of the Excel file to save. This is the identifier returned by the Open Excel node.
  • Path - (Optional) Path to save the file. Leave empty to save to the current location. Provide a new path to save as a different file.

Output

This node has no output.

Options

This node has no additional options.

Example

Saving changes to the current file:

// File Descriptor: message.excel_fd
// Path: (leave empty)
// This saves changes to the original file location

Saving as a new file:

// File Descriptor: message.excel_fd
// Path: C:\Reports\updated_report.xlsx
// This saves the file to a new location

Saving as a macro-enabled file:

// File Descriptor: message.excel_fd
// Path: C:\Automation\report_with_macros.xlsm
// The node automatically detects .xlsm extension and saves in macro-enabled format

Tips

  • If Path is empty, the file is saved to its current location (same as Ctrl+S in Excel).
  • If Path is provided, the file is saved to the new location (same as Save As).
  • The node automatically detects macro-enabled workbooks (.xlsm) and saves them with the appropriate format.
  • You can save to a different format by changing the file extension in the path (e.g., .xlsx, .xlsm, .xls).
  • After saving to a new path, the workbook remains open at the new location.

Common Errors

ErrorSolution
Invalid File DescriptorEnsure the Open Excel node was executed and the file descriptor is correct
Directory does not existCreate the parent directory before saving
Permission deniedEnsure you have write permissions for the target location
File is in useClose the file if it's open in another application