Cmdlet
New-OfficeExcelSaveOptions
Creates native workbook save settings.
Syntax
New-OfficeExcelSaveOptions
[-ClearCachedFormulaResults]
[-EvaluateFormulas]
[-FullCalculationOnOpen]
[-MarkFormulasDirty]
[-NoFastPackageWriter]
[-Preflight]
[-RepairDefinedNames]
[-ValidateOpenXml]
[<CommonParameters>]#Parameter set:
DefaultExamples
Validate and recalculate a workbook on save.
$options = New-OfficeExcelSaveOptions -Preflight -EvaluateFormulas -FullCalculationOnOpen -ValidateOpenXml
Save-OfficeExcel -Document $workbook -SaveOptions $optionsParameters
- -ClearCachedFormulaResults SwitchParameter
- Remove cached formula results unless evaluation is requested.
- -EvaluateFormulas SwitchParameter
- Evaluate supported formulas and write their cached results.
- -FullCalculationOnOpen SwitchParameter
- Request a full recalculation when the workbook is opened.
- -MarkFormulasDirty SwitchParameter
- Mark formulas dirty for the next application open.
- -NoFastPackageWriter SwitchParameter
- Use the standard package finalization path.
- -Preflight SwitchParameter
- Run native worksheet preflight cleanup before saving.
- -RepairDefinedNames SwitchParameter
- Repair common defined-name issues before saving.
- -ValidateOpenXml SwitchParameter
- Validate the saved package against the Open XML schema.
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.