Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

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

Authored help example

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