Cmdlet
Set-OfficeExcelFreeze
Freezes panes on the current worksheet.
Syntax
Set-OfficeExcelFreeze
[-LeftColumns <Int32>]
[-PassThru]
[-TopRows <Int32>]
[<CommonParameters>]#Parameter set:
ContextSet-OfficeExcelFreeze
-Document <ExcelDocument>
[-LeftColumns <Int32>]
[-PassThru]
[-Sheet <String>]
[-SheetIndex <Int32>]
[-TopRows <Int32>]
[<CommonParameters>]#Parameter set:
DocumentExamples
Freeze the top row.
ExcelSheet 'Data' { Set-OfficeExcelFreeze -TopRows 1 }Freezes the first row.
Freeze the top row and first column.
ExcelSheet 'Data' { Set-OfficeExcelFreeze -TopRows 1 -LeftColumns 1 }Freezes row 1 and column A.
Parameters
- -LeftColumns Int32
- Number of columns to freeze from the left.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -TopRows Int32
- Number of rows to freeze from the top.
- -Document ExcelDocument
- Workbook to operate on outside the DSL context.
- -Sheet String
- Worksheet name when using Document.
- -SheetIndex Int32
- Worksheet index (0-based) when using Document.
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.