+ Reply to Thread
Results 1 to 4 of 4

Grouping rows (with VBA) depending on three levels/columns

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    Uddevalla, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    34

    Post Grouping rows (with VBA) depending on three levels/columns

    TobiasTEST.xlsm

    My knowledge was not suffient for this but maybe there is someone out there with knowledge/experience for this?

    I have a list with seven columns (se enclosed file "Sheet1"). The three first columns describe which level of a Project the row belongs to. I would like to be able to run a macro to create a grouping (outline) for these levels automatically. The result should look like "Sheet2" in enclosed file.


    (The real list is 4000 rows therefore I need a macro).

    Thanks in advance for any contribution
    Tobias

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Grouping rows (with VBA) depending on three levels/columns

    hi

    The modified file does what you need.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-27-2012
    Location
    Uddevalla, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Grouping rows (with VBA) depending on three levels/columns

    Hi,

    Thanks for contribution, but did you test the code on "Sheet1"?.
    This code does not work in the example, when I am testing. It is looping around and do not stop (wait for over a minute).
    It seems like the first grouping was made and then the macro get stucked.
    Maybe it is a small change to done to make it work?

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Grouping rows (with VBA) depending on three levels/columns

    Hi

    There must have been a hidden row when you ran the macro.

    I have added 5 lines to make sure that there are no grouped or hidden rows.

    Try it now,
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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