API Reference
Cmdlet
Get-OfficeExcelFormulaAnalysis
Gets workbook formula references, functions, volatile formulas, and external links.
Remarks
Gets workbook formula references, functions, volatile formulas, and external links.
Examples
Find volatile and external-link formulas before publishing a workbook.
PS>
$analysis = Get-OfficeExcelFormulaAnalysis -Path .\Model.xlsx -IncludeFormulas
$analysis.Formulas |
Where-Object { $_.IsVolatile -or $_.HasExternalReference } |
Format-Table SheetName,Address,Formula,IsVolatile,HasExternalReference
Uses OfficeIMO formula analysis so scripts can review volatile functions and external workbook references without parsing package XML themselves.
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
Get-OfficeExcelFormulaAnalysis [-IncludeFormulas] -InputPath <String> [<CommonParameters>]#Parameter set:
PathParameters
- IncludeFormulas SwitchParameter
- Include per-cell formula details.
- InputPath String
- Workbook path.
Outputs
System.Management.Automation.PSObject
Get-OfficeExcelFormulaAnalysis -Document <ExcelDocument> [-IncludeFormulas] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook document.
- IncludeFormulas SwitchParameter
- Include per-cell formula details.
Outputs
System.Management.Automation.PSObject