+ Reply to Thread
Results 1 to 5 of 5

Macro te expand/collapse range

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Macro te expand/collapse range

    Hello,

    I have a range tha I called "DETAIL" I need to expand/collapse groups with same macro button.

    CAn you please help me? I found some info on expanding rows but not a range.

    Thanks ,
    Graig

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Macro te expand/collapse range

    You could do something like this, i am not in excel so not tested

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Macro te expand/collapse range

    Thanks but I would need only one macro.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Macro te expand/collapse range

    Combine the 2 with an if statement and another argument to say which way then :o)

  5. #5
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Macro te expand/collapse range

    I really have no clue how to do that though.. Can you help?

    In fact if the range is not easy to expand and collapse, I could use the rows 126:442 instead of range..

    Would appreciate your help on that.

    Thanks,
    Graig

+ 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. Expand / Collapse Groups via Macro
    By bmasella in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2014, 10:57 PM
  2. Expand/Collapse when clicked
    By Elmeholt in forum Excel General
    Replies: 5
    Last Post: 06-18-2013, 08:10 AM
  3. 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
  4. 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
  5. macro to expand and collapse a pivot field failing.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-01-2010, 02:30 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