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
Solved

Easy way to show 3 groupings in Excel

Posted on 2013-12-03
6
149 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
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

856 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