API Reference
Command
Get-OfficeExcelPivotTable
Gets pivot tables defined in a workbook.
Remarks
Gets pivot tables defined in a workbook.
Examples
List pivot tables in a workbook.
PS>Get-OfficeExcelPivotTable -Path .\report.xlsx
Returns pivot table metadata (name, sheet, source range).
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-OfficeExcelPivotTable -InputPath <String> [-Name <String>] [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]#Parameter set:
PathParameters
- InputPath String
- Path to the workbook.
- Name String
- Optional pivot table name filter.
- Sheet String
- Optional sheet name filter.
- SheetIndex Nullable`1
- Optional sheet index (0-based) filter.
Outputs
System.Management.Automation.PSObject
Get-OfficeExcelPivotTable -Document <ExcelDocument> [-Name <String>] [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook to inspect.
- Name String
- Optional pivot table name filter.
- Sheet String
- Optional sheet name filter.
- SheetIndex Nullable`1
- Optional sheet index (0-based) filter.
Outputs
System.Management.Automation.PSObject