Cmdlet
Set-OfficeExcelRowGroup
Configures collapsible Excel outline grouping for worksheet rows.
Syntax
Set-OfficeExcelRowGroup [-Clear] [-Collapsed] [[-EndRow] <Int32>] [-Hidden] [-KeepHidden] [-OutlineLevel <Int32>] [-PassThru] [-StartRow] <Int32> [-SummaryBelow <Boolean>] [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Group detail rows and collapse them.
ExcelSheet 'Data' { Set-OfficeExcelRowGroup -StartRow 2 -EndRow 20 -Collapsed }Applies Excel row outline metadata using OfficeIMO.
Parameters
- -Clear SwitchParameter
- Clear row grouping metadata from the target range.
- -Collapsed SwitchParameter
- Hide the grouped rows and mark the following summary row as collapsed.
- -EndRow Int32
- Last 1-based row in the group. Defaults to StartRow.
- Hide the grouped rows without marking the group collapsed.
- Keep hidden rows hidden when clearing row grouping metadata.
- -OutlineLevel Int32
- Excel outline level from 1 through 7.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -StartRow Int32
- First 1-based row in the group.
- -SummaryBelow Boolean
- Set whether row summary controls appear below grouped rows.
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.