+ Reply to Thread
Results 1 to 8 of 8

how to filter combobox value based on another combobox

  1. #1
    Registered User
    Join Date
    12-05-2017
    Location
    London, England
    MS-Off Ver
    Office 2016
    Posts
    10

    how to filter combobox value based on another combobox

    Hi
    I want to creat a form with two combobox:
    The first contains only unique country from column A
    The second contains only the customers with relates to the country selected.
    Thanks a lot

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: how to filter combobox value based on another combobox

    Give the attached a go.
    Although this selects floors and rooms in a hotel the principal is the same.
    first combobox fills with filtered floors which on selection only loads second combobox with rooms on that floor.
    Selection then loads listbox, then you can expand further.
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to filter combobox value based on another combobox

    How about
    Please Login or Register  to view this content.
    The line in red must go at the very top of the module, before any code.

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: how to filter combobox value based on another combobox

    Quote Originally Posted by ORONHAVU1 View Post
    ... to filter combobox value based on another combobox ...
    With a dictionary the code is very short and concise, but you can also do it without a dictionary ...
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-05-2017
    Location
    London, England
    MS-Off Ver
    Office 2016
    Posts
    10

    Re: how to filter combobox value based on another combobox

    Thank you very much

  6. #6
    Registered User
    Join Date
    12-05-2017
    Location
    London, England
    MS-Off Ver
    Office 2016
    Posts
    10

    Re: how to filter combobox value based on another combobox

    Thank you very much

  7. #7
    Registered User
    Join Date
    12-05-2017
    Location
    London, England
    MS-Off Ver
    Office 2016
    Posts
    10

    Re: how to filter combobox value based on another combobox

    Thank you very much

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: how to filter combobox value based on another combobox

    You're welcome & thanks for the feedback

+ 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] Combobox filter while typing is confused with other combobox list
    By ronettes in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-18-2019, 09:04 AM
  2. Replies: 3
    Last Post: 03-22-2018, 11:25 AM
  3. [SOLVED] ComboBox to populate Listbox and 2nd Combobox based on 1st combobox dropdown choice
    By bbqqsmokeman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2017, 08:21 PM
  4. ComboBox values source being changed based on another combobox selection in a UserForm
    By stephenanderson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2016, 11:12 PM
  5. [SOLVED] Code required to Auto Populate 3rd Combobox based on 02nd Combobox Selection
    By bimmy80 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-14-2015, 03:56 AM
  6. [SOLVED] Filter Combobox base on selection from previous combobox
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2013, 07:25 PM
  7. [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

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