Cmdlet
Set-OfficeExcelColumnGroup
Configures collapsible Excel outline grouping for worksheet columns.
Syntax
Set-OfficeExcelColumnGroup
[-Clear]
[-Collapsed]
[[-EndColumn] <Object>]
[-EndColumnName <String>]
[-Hidden]
[-KeepHidden]
[-OutlineLevel <Int32>]
[-PassThru]
[[-StartColumn] <Object>]
[-StartColumnName <String>]
[-SummaryRight <Boolean>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Group detail columns and collapse them.
ExcelSheet 'Data' { Set-OfficeExcelColumnGroup -StartColumn B -EndColumn D -Collapsed }Applies Excel column outline metadata using OfficeIMO.
Parameters
- -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.
- Hide the grouped columns without marking the group collapsed.
- Keep hidden columns hidden when clearing column grouping metadata.
- -OutlineLevel Int32
- Excel outline level from 1 through 7.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -StartColumn Object
- First 1-based column in the group.
- -StartColumnName String
- First column letter in the group.
- -SummaryRight Boolean
- Set whether column summary controls appear to the right of grouped columns.
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.