# Set-OfficeExcelColumnGroup

Configures collapsible Excel outline grouping for worksheet columns.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: ExcelColumnGroup

**Module**

`PSWriteOffice`

**Aliases**

`ExcelColumnGroup`

**Inputs**

`None`

**Source**

[SetOfficeExcelColumnGroupCommand.cs:18](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/SetOfficeExcelColumnGroupCommand.cs#L18) 

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>]
```

[#](#method-set-officeexcelcolumngroup-switchparameter-switchparameter-object-string-switchparameter-switchparameter-int32-switchparameter-object-string-boolean)

Parameter set: `All Parameter Sets`

## Examples

### Group detail columns and collapse them.

```powershell
ExcelSheet 'Data' { Set-OfficeExcelColumnGroup -StartColumn B -EndColumn D -Collapsed }
```

Applies Excel column outline metadata using OfficeIMO.

## Parameters

**-Clear SwitchParameter optional**

Clear column grouping metadata from the target range.

**-Collapsed SwitchParameter optional**

Hide the grouped columns and mark the following summary column as collapsed.

**-EndColumn Object optionalposition: 1**

Last 1-based column in the group. Defaults to the start column.

**-EndColumnName String optionalaliases: EndColumnLetter**

Last column letter in the group.

**-Hidden SwitchParameter optional**

Hide the grouped columns without marking the group collapsed.

**-KeepHidden SwitchParameter optional**

Keep hidden columns hidden when clearing column grouping metadata.

**-OutlineLevel Int32 optional**

Excel outline level from 1 through 7.

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-StartColumn Object optionalposition: 0aliases: Column**

First 1-based column in the group.

**-StartColumnName String optionalaliases: ColumnLetter, ColumnName, Letter, StartColumnLetter**

First column letter in the group.

**-SummaryRight Boolean optional**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:ED2D067B8C92A7344C197E0B3007CD461414981A192964DC9485E7BBDAD6A8D9 -->
