Is there a way of determining if any rows in a sheet are grouped using vba?
I need to write a script that groups rows accoding to new input from a user. I am starting by eliminating all groups.
Cells.Select
Selection.Rows.Ungroup
But it is throwing an error on sheets that don't have any rows grouped. I need to test for a group before running the above code. But don't know how to check.
Any help would be appreciated.
Jim
I need to write a script that groups rows accoding to new input from a user. I am starting by eliminating all groups.
Cells.Select
Selection.Rows.Ungroup
But it is throwing an error on sheets that don't have any rows grouped. I need to test for a group before running the above code. But don't know how to check.
Any help would be appreciated.
Jim