Hi Team,
I want to ungroup an excel.
Please help.
Thanks in Advance.
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”.
Sub UngroupSheet1Cells()
Sheets("Sheet1").Cells.Ungroup
End Sub
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
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.