+ Reply to Thread
Results 1 to 5 of 5

VBA dynamic list

  1. #1
    Registered User
    Join Date
    03-18-2012
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    42

    VBA dynamic list

    hi,

    i am having trouble with trying to figure out how to best approach my problem and hoping someone can provide input.

    i have a data dump in sheet 1 with multiple categories repeated. i want first to figure the number of categories and it will great group heading of those categories in next sheet.

    then filter the categories and copy sub group to the next sheet under the category

    result:
    category 1
    subgroup
    subgroup
    subgroup

    category 2
    subgroup

    category 3
    subgroup
    subgroup



    my issue is the number of categories will change all the time and need it dynamic to know how much to add. also the #of subgroup will change as well.
    one month category 1 might have 2 subgroup and other month 3. category 2 might have 1 subgroup or 4 the next month.

    i have attached example to make it easier to explain.

    hoping i can get some guidance on this.
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA dynamic list

    Hi matrix_xrs,
    try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-18-2012
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: VBA dynamic list

    Hi Nilem,

    that works but i need it do one more thing.

    lets say one month there in one category there are 2 subgroups and then following month there are 20, i need it to be able to insert rows. is there a way to determine the number of subgroups and then insert the rows?

    example:

    month 1 results

    row
    3 Type: acura
    4 blue
    5 black
    6 white
    7 red

    next month

    row
    3 Type: acura
    4 blue
    5 black
    6 white
    7 red
    8 green
    9 orange
    10 grey

    thanks for your help.

  4. #4
    Registered User
    Join Date
    03-18-2012
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: VBA dynamic list

    hi nilem,

    it also needs to add categories from month to month. some month there might be 4 and another month 6. is there a way to dynamically add categories?
    i though the easiest would be to do a pivot of the data and that would be easy way to determine the categories and subgroups.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: VBA dynamic list

    Maybe this:

    Please Login or Register  to view this content.

+ 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. create dynamic drop down list for large list of data
    By Dariusd7 in forum Excel General
    Replies: 2
    Last Post: 05-10-2014, 04:39 AM
  2. [SOLVED] dynamic list needs a dynamic sort
    By James C in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-13-2014, 03:56 PM
  3. Replies: 12
    Last Post: 04-30-2013, 05:40 PM
  4. Replies: 0
    Last Post: 04-15-2013, 09:22 AM
  5. Have a dynamic list changes each month.......want user to pick items from this list.
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2011, 03:52 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