Cmdlet
Get-OfficeExcelWorksheetView
Gets worksheet view settings such as frozen panes and gridline visibility.
Syntax
Get-OfficeExcelWorksheetView [-Sheet <String>] [-SheetIndex <Int32>] [<CommonParameters>]#Parameter set:
ContextGet-OfficeExcelWorksheetView [-Path] <String> [-Sheet <String>] [-SheetIndex <Int32>] [<CommonParameters>]#Parameter set:
PathGet-OfficeExcelWorksheetView -Document <ExcelDocument> [-Sheet <String>] [-SheetIndex <Int32>] [<CommonParameters>]#Parameter set:
DocumentExamples
Inspect worksheet view settings.
$views = Get-OfficeExcelWorksheetView -Path .\Report.xlsx
$views |
Format-Table SheetName, FrozenRowCount, FrozenColumnCount, ShowGridlines, ZoomScaleReturns view metadata useful for workbook audits and maintenance scripts.
Parameters
- -Sheet String
- Worksheet name to inspect. Defaults to the current DSL sheet or all workbook sheets.
- -SheetIndex Int32
- Worksheet index (0-based) to inspect. Defaults to the current DSL sheet or all workbook sheets.
- -Path String
- Workbook path to inspect.
- -Document ExcelDocument
- 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.