+ Reply to Thread
Results 1 to 4 of 4

How to filter a listbox with comboboxes?

  1. #1
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    How to filter a listbox with comboboxes?

    I posted a similar thread here: https://www.mrexcel.com/forum/excel-...xcel-file.html

    Hi,

    I am trying to filter a listbox with 5 combo boxes in an userform.

    ListBox1 and ComboBox1, ComboBox2, ComboBox3, ComboBox4, ComboBox5.

    Please Login or Register  to view this content.
    I am using 5 of these with different
    Please Login or Register  to view this content.
    This code works but I would like the selection to go fram ComboBox1 to ComboBox2 to ComboBox3 to ComboBox4 to ComboBox5.

    So if I select ComboBox1 all items where this is true are filtered.

    If I then select ComboBox2 all items where ComboBox1 and ComboBox2 are true.

    Same for ComboBox3 to ComboBox5.

    Where should I start?
    Last edited by waimea; 10-08-2019 at 02:29 PM.

  2. #2
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: How to filter a listbox with comboboxes?

    It seems I can't assign a listbox.list more then one time per private sub.

    I think that I want to create a new array and populate the listbox with the filtered array?

    I have tried copying the array into a new array but this doesn't work? I am not sure on the redim the array using LBound and UBound?

  3. #3
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: How to filter a listbox with comboboxes?

    Can anyone give me some suggestions on how to proceed?


    Steps:

    Step1. Filter Listbox1 on ComboBox1

    Step2. Save filtered array into new array

    Step3. Filter the filtered listbox/new array on ComboBox2

    Step4. Goto Step2. but for ComboBox3

    All suggestions are welcome!

  4. #4
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: How to filter a listbox with comboboxes?

    I got help in the thread mentioned above and this issue is now resolved!

+ 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] Get date from listbox column and distribute day/month/year to comboboxes
    By ElStar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2018, 07:57 PM
  2. filter data using comboboxes and display in listbox
    By reiiling in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2018, 01:25 AM
  3. 3 Dynamic ComboBoxes to filter data and populate a ListBox
    By Raylou in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-05-2018, 05:26 AM
  4. Independent filter using ComboBoxes
    By LoverBoA in forum Excel General
    Replies: 3
    Last Post: 06-11-2016, 10:53 PM
  5. [SOLVED] Filter worksheet data using 4 dependant comboboxes and populate in 'ListBox' on a userform
    By p_nayak268 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-27-2014, 12:41 PM
  6. [SOLVED] VBA filter with userform comboboxes
    By koffer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2014, 02:28 PM
  7. VBA userform listbox populate data entered from comboboxes
    By Hilton1982 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2012, 11:29 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