+ Reply to Thread
Results 1 to 3 of 3

VBA to Group Rows (outline) based on Text

  1. #1
    Registered User
    Join Date
    02-06-2017
    Location
    Philly
    MS-Off Ver
    10
    Posts
    2

    VBA to Group Rows (outline) based on Text

    Hello all,

    First time posting! Just getting into the forum thing.

    Anyway, I have a sheet that is generated via query and I'd like to add some VBA to group rows into their total lines using VBA.

    Is there a way to loop through a table and group based on Text. In the attached, I would like to simply group the table based on column "B" so that I would only see "TYPE_ALL" when the report groups are collapsed. I am looking to GROUP, not HIDE the other rows.

    I will also add that the table will expand and contract when the query is run so I would like to Clear the Outline and then create the Row Groupings each time.

    Thanks in advance for your help!
    Attached Images Attached Images
    Last edited by IndieKiller; 02-14-2017 at 09:48 AM.

  2. #2
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: VBA to Group Rows (outline) based on Text

    Indie,

    Try this code:
    Please Login or Register  to view this content.
    HTH,
    Maud

  3. #3
    Registered User
    Join Date
    02-06-2017
    Location
    Philly
    MS-Off Ver
    10
    Posts
    2

    Re: VBA to Group Rows (outline) based on Text

    Maudibe - simple and elegant! Exactly what I needed. AWESOME! Thanks so much for your help!

+ 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 Group (Outline) rows based on cell values
    By excelatnothing in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2015, 02:13 AM
  2. Automatically outline (group) rows based on date
    By jabba9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2014, 05:33 AM
  3. Replies: 1
    Last Post: 02-10-2014, 10:26 PM
  4. Group outline between word
    By emina002 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2014, 12:53 AM
  5. Group and Outline
    By mimikli in forum Excel General
    Replies: 2
    Last Post: 03-17-2010, 05:10 PM
  6. Group and Outline
    By naturallight in forum Excel General
    Replies: 1
    Last Post: 02-09-2010, 05:02 PM
  7. Outline / Group buttons
    By Gizmo63 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2006, 07:55 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