OfficeIMO

API Reference

Command

Save-OfficeExcel

Namespace PSWriteOffice
Inputs
OfficeIMO.Excel.ExcelDocument
Outputs
OfficeIMO.Excel.ExcelDocument

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 Sets

Parameters

Document ExcelDocument requiredposition: 0pipeline: True (ByValue)
Workbook to save.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the workbook for further processing.
Path String optionalposition: namedpipeline: False
Optional save-as path.
Show SwitchParameter optionalposition: namedpipeline: False
Open the workbook after saving.

Outputs

OfficeIMO.Excel.ExcelDocument