+ Reply to Thread
Results 1 to 3 of 3

VBA to Expand/Collapse Row Groupings

  1. #1
    Registered User
    Join Date
    07-06-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2007
    Posts
    1

    VBA to Expand/Collapse Row Groupings

    Hello,

    I'm very new to VBA but am trying to learn this one step at a time!

    Can you please help me figure out how to group/ungroup rows based on a value chosen from the Combo Box?

    Attached is the report sample for your reference.

    Basically I want to expand the entire group where the week chosen falls under. If a user choose Week 3 then i want rows 7:10 to be expanded only.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA to Expand/Collapse Row Groupings

    I dont think its possible via vba. I tried recording it to see what code gets generated but nothing appeared.

    Why dont you hide the rows instead of grouping & ungrouping?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA to Expand/Collapse Row Groupings

    I reckon this oughta do it for you
    Attached Files Attached Files
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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