+ Reply to Thread
Results 1 to 3 of 3

Expand/Collaps Group Based on Selected Cell

  1. #1
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    364

    Expand/Collaps Group Based on Selected Cell

    Hi everyone

    Is it possible to expand/collaps grouped columns with VBA?
    I know it's possible to expand/collap the entire "level". But I am interested in single group.

    i.e.

    Group cols. are A to E and F to P

    When the user selects column A, group "A to E" should automatially expand.
    If he then selects a cell in col. F, "A to E" should collaps and "F to P" should expand.

    Thanks
    FD

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb Re: Expand/Collaps Group Based on Selected Cell


    Hi,

    it's possible : activate Macro Recorder and do it manually : you'll get a free code !

  3. #3
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    364

    Re: Expand/Collaps Group Based on Selected Cell

    Hi Marc

    I treid that before posting here!
    I would not have opened the thraed otherwise ;-)
    It does not record anything

    It only records when you collaps/expand the entire level (i.e. level 2)

+ 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. Replies: 5
    Last Post: 07-06-2014, 11:41 PM
  2. Expand X axis based on cell values
    By vjen@hotmail.com in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-15-2014, 10:38 AM
  3. [SOLVED] Macro to Expand/close Group
    By arn0ldas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2014, 12:54 PM
  4. Replies: 2
    Last Post: 01-30-2013, 03:16 AM
  5. Auto expand range based on first cell selection
    By Jimmy Moggles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-29-2011, 07:56 AM

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