API Reference
Cmdlet
Set-OfficeExcelColumnGroup
Configures collapsible Excel outline grouping for worksheet columns.
Remarks
Configures collapsible Excel outline grouping for worksheet columns.
Examples
Group detail columns and collapse them.
PS>
ExcelSheet 'Data' { Set-OfficeExcelColumnGroup -StartColumn B -EndColumn D -Collapsed }
Applies Excel column outline metadata using OfficeIMO.
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.
Syntax
Set-OfficeExcelColumnGroup [-Clear] [-Collapsed] [-EndColumn <Object>] [-EndColumnName <String>] [-Hidden] [-KeepHidden] [-OutlineLevel <Int32>] [-StartColumn <Object>] [-StartColumnName <String>] [-SummaryRight <Nullable`1>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Clear SwitchParameter
- Clear column grouping metadata from the target range.
- Collapsed SwitchParameter
- Hide the grouped columns and mark the following summary column as collapsed.
- EndColumn Object
- Last 1-based column in the group. Defaults to the start column.
- EndColumnName String
- Last column letter in the group.
- Hidden SwitchParameter
- Hide the grouped columns without marking the group collapsed.
- KeepHidden SwitchParameter
- Keep hidden columns hidden when clearing column grouping metadata.
- OutlineLevel Int32
- Excel outline level from 1 through 7.
- StartColumn Object
- First 1-based column in the group.
- StartColumnName String
- First column letter in the group.
- SummaryRight Nullable`1
- Set whether column summary controls appear to the right of grouped columns.
Outputs
System.Object