API Reference
Command
Save-OfficeExcel
Saves an Excel workbook without disposing it.
Remarks
Saves an Excel workbook without disposing it.
Examples
Save a workbook in-place.
PS>$workbook | Save-OfficeExcel
Writes pending changes to disk and keeps the workbook open.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Save-OfficeExcel -Document <ExcelDocument> [-PassThru] [-Path <String>] [-Show] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Document ExcelDocument
- Workbook to save.
- PassThru SwitchParameter
- Emit the workbook for further processing.
- Path String
- Optional save-as path.
- Show SwitchParameter
- Open the workbook after saving.
Outputs
OfficeIMO.Excel.ExcelDocument