Cmdlet
Get-OfficeExcelSheetView
Gets frozen panes, gridlines, direction, zoom and view mode for worksheets.
Syntax
Get-OfficeExcelSheetView
[-Document <ExcelDocument>]
[-Sheet <OfficeSheetSelector[]>]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeExcelSheetView
[-Path] <String[]>
[-Sheet <OfficeSheetSelector[]>]
[<CommonParameters>]#Parameter set:
PathGet-OfficeExcelSheetView
-LiteralPath <String[]>
[-Sheet <OfficeSheetSelector[]>]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Inspect report workbooks without editing them.
Get-ChildItem .\Reports -Filter *.xlsx | Get-OfficeExcelSheetView -Sheet Summary | Format-TableParameters
- -Document ExcelDocument
- Gets or sets a live workbook; omission uses the current worksheet or workbook scope.
- -Sheet OfficeSheetSelector[]
- Gets or sets worksheet names or wildcard patterns, one-based positions or native worksheet objects.
- -Path String[]
- Gets or sets workbook paths with filesystem wildcard expansion.
- -LiteralPath String[]
- Gets or sets literal workbook paths, including FileInfo.FullName and provider PSPath.
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.
Outputs
PSWriteOffice.Models.Excel.ExcelSheetViewInfo: A worksheet view snapshot with its workbook path and sheet name.