Solved

Easy way to show 3 groupings in Excel

Posted on 2013-12-03
6
163 Views
Last Modified: 2013-12-09
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
0
Comment
Question by:daisypetals313
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 39693918
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...
0
 
LVL 39

Expert Comment

by:nutsch
ID: 39693966
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
0
 

Author Comment

by:daisypetals313
ID: 39694000
Does anyone know what macro code would do this?
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 39

Accepted Solution

by:
nutsch earned 500 total points
ID: 39694080
You can use something like this:

If ActiveCell.EntireColumn.ShowDetail Then
   ActiveCell.EntireColumn.ShowDetail = False
Else
    ActiveCell.EntireColumn.ShowDetail = True
End If

Open in new window


Thomas
0
 
LVL 4

Expert Comment

by:andrew_man
ID: 39694232
Add a vba button and use the above code
0
 

Author Closing Comment

by:daisypetals313
ID: 39706293
Thank you.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question