Ungrouping an Excel

Hi Team,

I want to ungroup an excel.

Please help.
Thanks in Advance.

Hi @yash.choursia

Use Invoke VBA

Sub UngroupCells()
    ActiveSheet.Cells.Ungroup
End Sub

Hope it helps!!

What will i write in place of ActiveSheet? I want to Ungroup “Sheet1”.

@yash.choursia

Sub UngroupSheet1Cells()
    Sheets("Sheet1").Cells.Ungroup
End Sub

Hi @yash.choursia

Rows

Sub UngroupRowsOnSheet1()
Sheets(“Sheet1”).Rows.Ungroup
End Sub

Columns

Sub UngroupColumnsOnSheet1()
Sheets(“Sheet1”).Columns.Ungroup
End Sub


**Note: macros need to be enabled in your Excel file

Happy Automation :slight_smile:

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.