# Save-OfficeExcel

Saves an Excel workbook without disposing it. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`OfficeIMO.Excel.ExcelDocument`

**Source**

[SaveOfficeExcelCommand.cs:19](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/SaveOfficeExcelCommand.cs#L19) 

Saves an Excel workbook without disposing it.

## Syntax

```
Save-OfficeExcel
[-ClearCachedFormulaResults]
[-DateSystem <1900|1904|NineteenHundred|NineteenFour>]
[-DisableFastPackageWriter]
[-Document] <ExcelDocument>
[-EvaluateFormulas]
[-ForceFullCalculationOnOpen]
[-MarkFormulasDirty]
[-Open]
[-PassThru]
[-Password <String>]
[-Path <String>]
[-SafePreflight]
[-SafeRepairDefinedNames]
[-ValidateOpenXml]
[<CommonParameters>]
```

[#](#member-5c0dd9ad7a36e46826533b80)

Parameter set: `All Parameter Sets`

## Examples

### Save a workbook in-place.

```powershell
$workbook | Save-OfficeExcel
```

Writes pending changes to disk and keeps the workbook open.

## Parameters

**-ClearCachedFormulaResults SwitchParameter optional**

Remove cached formula results before saving.

**-DateSystem String optional**

Workbook date system for Excel date serials.

Possible values: `1900`, `1904`, `NineteenHundred`, `NineteenFour`

**-DisableFastPackageWriter SwitchParameter optional**

Disable OfficeIMO fast package writers for this save.

**-Document ExcelDocument requiredposition: 0pipeline: True (ByValue)**

Workbook to save.

**-EvaluateFormulas SwitchParameter optional**

Evaluate supported formulas and write cached values before saving.

**-ForceFullCalculationOnOpen SwitchParameter optional**

Request a full workbook recalculation when opened in Excel-compatible applications.

**-MarkFormulasDirty SwitchParameter optional**

Mark formula cells dirty before saving.

**-Open SwitchParameter optionalaliases: Show**

Open the workbook after saving.

**-PassThru SwitchParameter optional**

Emit the workbook for further processing.

**-Password String optional**

Password used to save the workbook as an encrypted package.

**-Path String optional**

Optional save-as path.

**-SafePreflight SwitchParameter optional**

Run OfficeIMO worksheet preflight cleanup before saving.

**-SafeRepairDefinedNames SwitchParameter optional**

Repair common defined-name issues before saving.

**-ValidateOpenXml SwitchParameter optional**

Validate the saved package with OpenXmlValidator and throw on errors.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:7EF5CBD0D179145A15FCE3473FD9457047F143CB786F8B767B5839088078F613 -->
