# Get-OfficeExcel

Opens an existing Excel workbook. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Source**

[GetOfficeExcelCommand.cs:19](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelCommand.cs#L19) 

Opens an existing Excel workbook.

## Syntax

```
Get-OfficeExcel
[-Password <String>]
[-Path] <String>
[-ReadOnly]
[<CommonParameters>]
```

[#](#method-get-officeexcel-string-string-switchparameter)

Parameter set: `Path`

```
Get-OfficeExcel
[-AllowHttp]
[-Password <String>]
[-ReadOnly]
[-Uri] <Uri>
[<CommonParameters>]
```

[#](#method-get-officeexcel-switchparameter-string-switchparameter-uri)

Parameter set: `Uri`

## Description

Returns the underlying ExcelDocument so callers can inspect or reuse it in DSL pipelines.

## Examples

### Load a workbook in read-only mode.

```powershell
$workbook = Get-OfficeExcel -Path .\report.xlsx -ReadOnly
```

Loads report.xlsx for inspection without enabling writes.

## Parameters

**-Password String optional**

Password used to open an encrypted workbook package.

**-Path String requiredposition: 0aliases: FilePath, InputPathsets: Path**

Path to the workbook to load.

**-ReadOnly SwitchParameter optional**

Open the file in read-only mode.

**-AllowHttp SwitchParameter optionalsets: Uri**

Allow HTTP workbook downloads in addition to HTTPS.

**-Uri Uri requiredposition: 0aliases: Urlsets: 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:191DED9444FA83102879A03DDCE0CE5BC37A8D645C5A7E18BD19BBB6B7F9D7E8 -->
