+ Reply to Thread
Results 1 to 3 of 3

populate combobox with dropdown

  1. #1
    Registered User
    Join Date
    06-10-2014
    Posts
    5

    populate combobox with dropdown

    Try as I might to figure it out myself, I haven't been able to. So I thought I'd throw it out to the interwebs.

    I want to automatically populate a dropdown menu combobox based on an option selected from a previous dropdown menu combobox. For example, in the attached workbook, if I select Nashville for ComboBox1, I want to see a dropdown of Honkytonks, Opry at Ryman, and Centennial Park in ComboBox2.

    As you'll see, I have already included code to make ComboBox1 distinct values. I'd like to keep that as is.

    Thanks in advance!

    VBAcombobox.xlsm

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: populate combobox with dropdown

    The first part of your userform initilize code (where you populate combobox1) is just fine. Remove the other stuff.

    In the combobox1_change event put this code

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-10-2014
    Posts
    5

    Re: populate combobox with dropdown

    Huzzah! It works. Thank you very much, sir.

+ 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. Userform Combobox to populate form: Can I change the order of the columns in the combobox?
    By CraigWiggins in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2014, 12:14 PM
  2. Populate combobox dependent on contents of previous combobox
    By ed1967 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-08-2014, 11:40 AM
  3. Userform Combobox to populate based on selection in another combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 03:34 PM
  4. [SOLVED] Excel Userform: Populate other controls (i.e. textbox & combobox) based on combobox select
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 04:50 PM
  5. Way to populate combobox rowsource based on previous combobox value
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-08-2012, 12:50 AM
  6. transferring combobox value from one user form to populate combobox on another
    By smartphreak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2010, 10:12 PM
  7. Replies: 2
    Last Post: 09-14-2009, 08:34 AM

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