floridagunner
Board Regular
- Joined
- Jul 20, 2007
- Messages
- 60
I need a macro that will do away with all grouping on a worksheet. I was using the following code to remove all row groupings from my worksheet:
This was working fine when I had spreadsheets with only two groups of rows. But I now have spreadsheets with multiple row groups ranging from 2-8.
I tried the code listed on a question posted previously here:
http://www.mrexcel.com/forum/showthread.php?t=373642
However this solution simply unhides all grouped rows. What I need to do is
REMOVE ANY AND ALL GROUPING THAT MAY EXIST ON THE WORKSHEET.
Hope someone can help me.
Thanks
floridagunner
Code:
Cells.Select
Selection.Rows.Ungroup
Selection.Rows.Ungroup
This was working fine when I had spreadsheets with only two groups of rows. But I now have spreadsheets with multiple row groups ranging from 2-8.
I tried the code listed on a question posted previously here:
http://www.mrexcel.com/forum/showthread.php?t=373642
Code:
Sheets("YourSheet").Outline.ShowLevels 8
However this solution simply unhides all grouped rows. What I need to do is
REMOVE ANY AND ALL GROUPING THAT MAY EXIST ON THE WORKSHEET.
Hope someone can help me.
Thanks
floridagunner
Last edited: