+ Reply to Thread
Results 1 to 6 of 6

Dynamic ComboBox (Drop down) menu in a VBA UserForm

  1. #1
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague
    MS-Off Ver
    Excel 2013
    Posts
    159

    Dynamic ComboBox (Drop down) menu in a VBA UserForm

    Hi all,

    I need help with creating dynamic ComboBox menu in a VBA UserForm.

    In the sheet "Pickup list" I have list of regions in the world. Also, for each of the regions I have list of the countries in it.

    When in the "Start" sheet I click the green "Start" button, a UserForm will popup with 2 ComboBox.
    The list in the first ComboBox (Region) is coming from the "Region" list in the "Pickup list" sheet (this are cells A2:A12).
    The list in the second ComboBox (Country) should be depended of the value which is chosen in the "RegionComboBox.
    E.g. If I choose for region "Baltics", in the Country field, the ComboBox should show me only the countries in this region. If I choose another region, the Combo box to show me only the countries from that region.

    Thank you in advance for your help.

    Igor

    Dynamic VBA drop down list.xlsb

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Dynamic ComboBox (Drop down) menu in a VBA UserForm

    Try this one.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Dynamic ComboBox (Drop down) menu in a VBA UserForm

    Hi Bakerman2,

    Thanks for the fast reply. Is it possible to have the dynamic ComboBox without grouping the data columns together? In the file with which I need to work, the region list in column V, while the country list are in the columns X:BB.
    Thank you in advance.
    Igor

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Dynamic ComboBox (Drop down) menu in a VBA UserForm

    Check revised file.

    PS Have put value in W1 of Pickup list for CurrentRegion to work.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Dynamic ComboBox (Drop down) menu in a VBA UserForm

    Hi Bakerman2,

    That works perfectly.
    Thanks a lot!!!

    Igor

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Dynamic ComboBox (Drop down) menu in a VBA UserForm

    You're welcome and thanks for the rep

+ 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. Drop Down Menu with Dynamic Return
    By TheErbstur in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2014, 04:49 AM
  2. [SOLVED] Dynamic drop down menu
    By madhatter40 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2013, 06:33 PM
  3. Dynamic Pie Chart w/ Drop Down Menu
    By JonLombardi in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 05-17-2013, 01:35 PM
  4. [SOLVED] Dynamic combobox userform
    By Sleepyshy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2012, 11:41 AM
  5. [SOLVED] Dynamic range for drop down menu
    By wyanrandy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2012, 03:16 PM
  6. Dynamic Chart with Drop-Down Menu
    By Katrotat in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-30-2011, 05:30 PM
  7. Removing used item from dynamic drop down menu
    By XeRo13g in forum Excel General
    Replies: 5
    Last Post: 10-16-2010, 02:03 PM

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