API Reference
Cmdlet
Get-OfficeExcelTable
Gets Excel tables defined in a workbook.
Remarks
Gets Excel tables defined in a workbook.
Examples
Example 1: List tables and export table metadata.
PS>
$tables = Get-OfficeExcelTable -Path .\report.xlsx -Sheet Data
$tables |
Select-Object -Property Name, Sheet, Range |
Export-Csv -Path .\ExcelTables.csv -NoTypeInformation
Returns table metadata for workbook documentation or generated-artifact proof.
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-OfficeExcelTable -InputPath <String> [-Name <String>] [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]#Parameter set:
PathParameters
- InputPath String
- Path to the workbook.
- Name String
- Optional table name filter.
- Sheet String
- Optional sheet name filter.
- SheetIndex Nullable`1
- Optional sheet index (0-based) filter.
Outputs
System.Management.Automation.PSObject
Get-OfficeExcelTable [-AllowHttp] [-Name <String>] [-Sheet <String>] [-SheetIndex <Nullable`1>] -Uri <Uri> [<CommonParameters>]#Parameter set:
UriParameters
- AllowHttp SwitchParameter
- Allow HTTP workbook downloads in addition to HTTPS.
- Name String
- Optional table name filter.
- Sheet String
- Optional sheet name filter.
- SheetIndex Nullable`1
- Optional sheet index (0-based) filter.
- Uri Uri
- Remote workbook URI to inspect.
Outputs
System.Management.Automation.PSObject
Get-OfficeExcelTable -Document <ExcelDocument> [-Name <String>] [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook to inspect.
- Name String
- Optional table name filter.
- Sheet String
- Optional sheet name filter.
- SheetIndex Nullable`1
- Optional sheet index (0-based) filter.
Outputs
System.Management.Automation.PSObject