Cmdlet
Get-OfficeExcelTable
Gets Excel tables defined in a workbook.
Syntax
Get-OfficeExcelTable
[-Name <String>]
[-Path] <String>
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]#Parameter set:
PathGet-OfficeExcelTable
[-AllowHttp]
[-Name <String>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[-Uri] <Uri>
[<CommonParameters>]#Parameter set:
UriGet-OfficeExcelTable
-Document <ExcelDocument>
[-Name <String>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]#Parameter set:
DocumentExamples
List tables and export table metadata.
$tables = Get-OfficeExcelTable -Path .\report.xlsx -Sheet Data
$tables |
Select-Object -Property Name, Sheet, Range |
Export-Csv -Path .\ExcelTables.csv -NoTypeInformationReturns table metadata for workbook documentation or generated-artifact proof.
Parameters
- -Name String
- Optional table name filter.
- -Path String
- Path to the workbook.
- -Sheet String
- Optional sheet name filter.
- -SheetIndex Int32
- Optional sheet index (0-based) filter.
- -AllowHttp SwitchParameter
- Allow HTTP workbook downloads in addition to HTTPS.
- -Uri Uri
- Remote workbook URI to inspect.
- -Document ExcelDocument
- Workbook to inspect.
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.