# Get-OfficeExcelNamedRange

Gets defined names (named ranges) from an Excel workbook.

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**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`System.Management.Automation.PSObject`

**Source**

[GetOfficeExcelNamedRangeCommand.cs:24](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelNamedRangeCommand.cs#L24) 

Gets defined names (named ranges) from an Excel workbook.

## Syntax

```
Get-OfficeExcelNamedRange
[-Name <String>]
[-Path] <String>
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-get-officeexcelnamedrange-string-string-string-int32)

Parameter set: `Path`

```
Get-OfficeExcelNamedRange
[-AllowHttp]
[-Name <String>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[-Uri] <Uri>
[<CommonParameters>]
```

[#](#method-get-officeexcelnamedrange-switchparameter-string-string-int32-uri)

Parameter set: `Uri`

```
Get-OfficeExcelNamedRange
-Document <ExcelDocument>
[-Name <String>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-get-officeexcelnamedrange-exceldocument-string-string-int32)

Parameter set: `Document`

## Examples

### List workbook and sheet-scoped names.

```powershell
$ranges = Get-OfficeExcelNamedRange -Path .\report.xlsx
$ranges |
    Select-Object -Property Name, Scope, Range |
    Format-Table -AutoSize
```

Returns named ranges so workbook navigation and formulas can be reviewed.

## Parameters

**-Name String optional**

Optional named range to retrieve.

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

Path to the workbook.

**-Sheet String optional**

Optional sheet name for sheet-scoped names.

**-SheetIndex Int32 optional**

Optional sheet index (0-based) for sheet-scoped names.

**-AllowHttp SwitchParameter optionalsets: Uri**

Allow HTTP workbook downloads in addition to HTTPS.

**-Uri Uri requiredposition: 0aliases: Urlsets: Uri**

Remote workbook URI to inspect.

**-Document ExcelDocument requiredpipeline: True (ByValue)sets: Document**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:407F3828FAC0FB462EB3035671E86EA7E64DD00FAC5F826AD51E584D16CF5B73 -->
