+ Reply to Thread
Results 1 to 8 of 8

Populating multiple drop down lists with different options

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    Chicago, Il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Populating multiple drop down lists with different options

    Hi all,

    I am creating a tool for users where they will select multiple options using drop-down lists. There are ~150 drop down lists total, and each list needs to have different options in the drop down list.

    I have a master list with ~270 rows that lists each option for each drop-down menu. What I am envisioning is some version of a vlookup where it takes the category listed and then populates the drop-down list with each option associated with that category on the list.

    Example 1:
    Category: Conferences

    Master List:
    Conferences Level 1
    Conferences Level 2
    Conferences Level 3

    [So, the drop down list next to "Conferences" would contain Level 1, Level 2, Level 3]

    Example 2:
    Category: Event Production

    Master List:
    Event Production Level 1
    Event Production Level 2

    [So, the drop down list next to "Event Production" would contain Level 1, Level 2]

    Any help/ideas would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Populating multiple drop down lists with different options

    Is your ask that you want a macro that will create the data validation specification for you? So you don't have to do it manually?

  3. #3
    Registered User
    Join Date
    10-25-2013
    Location
    Chicago, Il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Populating multiple drop down lists with different options

    Yes, exactly. Sorry for leaving that very important part out.

    I am looking for a macro/some other functionality that will automate this process given the large number of drop down lists. Additionally, the data will change in the future, and I want to avoid manually doing this process each time.

  4. #4
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Populating multiple drop down lists with different options

    This should do it. Assumption is that the drop down lists on User Tools sheet have no blanks between them.
    The comments in the VBA code should be describe what's being done
    DropDownDefn.xlsm

  5. #5
    Registered User
    Join Date
    10-25-2013
    Location
    Chicago, Il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Populating multiple drop down lists with different options

    Hi hectop,

    Thank you so much for taking a look at this. I checked out your DropDownDefn.xlsm & played around with it a bit by changing drop-down options then re-ran the macro, and this is exactly the result I am hoping for.

    Unfortunately, I am having a tricky time applying the macro to my actual tool, likely because of the formatting. I have attached the actual tool - you will see that there are groups of columns, and within each group, there should be drop-down menus in the peach cells (Col H, Col T, Col AD, Col AN, Col AX, and Col BH). Additionally, the menu items and corresponding drop-down options are located in the DATA - Menu tab in Col D and E.

    As I said, I tried to update the macro to match this formatting, but it's a bit above my head. Do you think you could help?

    Thanks you so much!
    Attached Files Attached Files
    Last edited by achdeekay; 10-27-2013 at 02:55 PM. Reason: changed attachment

  6. #6
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Populating multiple drop down lists with different options

    This should do it. It abends if there is a drop down with no definitions and stops further definition. You have at least one situation (Regional Models)
    It uses the x in the column 4 columns to the right of the drop down to determine if it should define a drop down list - this handles the issue with headings.
    If any of the columns change, the macro has to be adjusted.
    DropDown2.xlsm

  7. #7
    Registered User
    Join Date
    10-25-2013
    Location
    Chicago, Il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Populating multiple drop down lists with different options

    Would it be possible for you to copy and paste the code directly? There appears to be 3 macros in the attached spreadsheet (dropdownlists.UpdateDropDowns, Module1.UpdateDowns, test), and when I copy the code into the real tool, it's coming up as an error.

  8. #8
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Populating multiple drop down lists with different options

    UpdateDropDowns in module1 is the macro that should be executed. It calls Function DefValList & Function ColToLtr
    You need to copy everything in module1 from the beginning to the just prior to sub test

    The sub test can be deleted.

+ 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. [SOLVED] Column B drop down list with 2 options, columns C & E with dependent drop down lists
    By betic in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-26-2012, 03:47 PM
  2. Two drop down lists, one changes it's options based on the other
    By ukAKB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2011, 10:46 AM
  3. Trouble Populating Adjacent Cells Using Drop Down Lists
    By onlineeng in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2011, 10:33 PM
  4. Create lists with multiple choice options
    By Proejo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-30-2007, 08:36 AM
  5. Populating Drop-Down lists
    By gtanti in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-08-2006, 11:45 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