# Get-OfficeExcelWorksheetView

Gets worksheet view settings such as frozen panes and gridline visibility.

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

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: ExcelWorksheetView

**Module**

`PSWriteOffice`

**Aliases**

`ExcelWorksheetView`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`System.Management.Automation.PSObject`

**Source**

[GetOfficeExcelWorksheetViewCommand.cs:20](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelWorksheetViewCommand.cs#L20) 

Gets worksheet view settings such as frozen panes and gridline visibility.

## Syntax

```
Get-OfficeExcelWorksheetView
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

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

Parameter set: `Context`

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

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

Parameter set: `Path`

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

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

Parameter set: `Document`

## Examples

### Inspect worksheet view settings.

```powershell
$views = Get-OfficeExcelWorksheetView -Path .\Report.xlsx
$views |
    Format-Table SheetName, FrozenRowCount, FrozenColumnCount, ShowGridlines, ZoomScale
```

Returns view metadata useful for workbook audits and maintenance scripts.

## Parameters

**-Sheet String optional**

Worksheet name to inspect. Defaults to the current DSL sheet or all workbook sheets.

**-SheetIndex Int32 optional**

Worksheet index (0-based) to inspect. Defaults to the current DSL sheet or all workbook sheets.

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

Workbook path to inspect.

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

Workbook to inspect outside the DSL context.

## 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:91B9D25663FC45567C6F7AC0DE88F1F7486BEF317F1FD69FA8FE2EB020F0440C -->
