Avatar of daisypetals313
daisypetals313
Flag for United States of America asked on

Easy way to show 3 groupings in Excel

I have three sets of grouping on my sample file attached.  If I click 1or 2 (at top right) then either all groups expand or close up.  Is there a way to have numbers 1, 2, 3 up top and clicking on each number will expand just one of the sections?
Book1.xlsx
Microsoft Excel

Avatar of undefined
Last Comment
daisypetals313

8/22/2022 - Mon
NBVC

I don't think so, but you can easily just click the + sign above the group you want to expand, then click the - sign to contract it...
nutsch

Just like he said, but you could build a macro that would expand / collapse the currently selected group and code it to buttons marked 1, 2, and 3.

Thomas
daisypetals313

ASKER
Does anyone know what macro code would do this?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ASKER CERTIFIED SOLUTION
nutsch

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
andrew_man

Add a vba button and use the above code
daisypetals313

ASKER
Thank you.