SaveAs method: PSSpreadsheet class

Syntax

SaveAs(filename)

Description

Use the SaveAs method to save the Excel workbook file with a new file name.

Parameters

Parameter Description

filename

Specifies the new name for the Excel workbook file.

Returns

(Optional) A Boolean value: True if the method completes successfully, False otherwise.

Example

The following example saves the Excel workbook file with a new name.

&filename = "newfile.xlsx";
&ssObject.SaveAs(&filename);