Cmdlet
Get-OfficeExcel
Opens an existing Excel workbook.
Syntax
Description
Returns the underlying ExcelDocument so callers can inspect or reuse it in DSL pipelines.
Examples
Load a workbook in read-only mode.
$workbook = Get-OfficeExcel -Path .\report.xlsx -ReadOnlyLoads report.xlsx for inspection without enabling writes.
Parameters
- -Password String
- Password used to open an encrypted workbook package.
- -Path String
- Path to the workbook to load.
- -ReadOnly SwitchParameter
- Open the file in read-only mode.
- -AllowHttp SwitchParameter
- Allow HTTP workbook downloads in addition to HTTPS.
- -Uri Uri
- Remote workbook URI to load.
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.