+ Reply to Thread
Results 1 to 3 of 3

Expand/collapse grouped data based on a dropdown cell

  1. #1
    Registered User
    Join Date
    12-03-2015
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    3

    Expand/collapse grouped data based on a dropdown cell

    Hello,

    I am trying to create a macro which expand a set of grouped rows based on the value of a dropdown cell. For example, Cell C4 contains a dropdown for the years 2015-2025, and i have the corresponding data to those years grouped in the rows below. I would like to expand the data for 2016 when I select 2016 from the dropdown.

    I have included a copy of my file which should better expain what I am trying to do, and the code that I have thus far.

    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-03-2015
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    3

    Re: Expand/collapse grouped data based on a dropdown cell

    I have reviewed other VBA code that others have provided on similar topics and I am not sure what is missing from mine to make it work. Any suggestions are greatly appreciated!

    Thanks!

  3. #3
    Registered User
    Join Date
    12-03-2015
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    3

    Re: Expand/collapse grouped data based on a dropdown cell

    Does anyone have any suggestions on how to adjust my code to make this work? Is this even possible?

    I tried recording a macro going step by step of what i'm trying to accomplish, but that did not work as planned. Any suggestions are appreciated!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to expand and collapse rows based on criteria in cells
    By jholiday78 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2015, 10:32 AM
  2. Macro to expand or collapse fields with 0 data
    By ahouston in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-07-2015, 10:47 AM
  3. Expand / Collapse number from equation in a cell?
    By jamewoong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2015, 06:55 PM
  4. [SOLVED] VBA Code - Expand/Collapse Grouped Columns
    By honger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2014, 06:26 PM
  5. Excel Macro to Collapse/Expand grouped rows and columns
    By magjayeck in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2013, 10:58 AM
  6. Macro to Group/Ungroup a specific Table plus macro to expand/Collapse grouped table.
    By Michell Feitosa in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-04-2012, 08:10 PM
  7. Expand/Collapse Grouped Data in Protected Worksheet
    By Robert Slattery in forum Excel General
    Replies: 4
    Last Post: 11-08-2005, 03:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1