OK, so I'm trying to implement the concept of dynamically filtering comboboxes based on any one of them changing. Imagine you have 4 comboboxes on a sheet (currently using ActiveX ComboBoxes so they can be typed into directly). Each of the comboboxes shows values from a different column on a "Materials List" sheet. The user should be able to select a value from any of the comboboxes and the other 3 should be filtered to only show the remaining distinct values from their respective column in the "Materials List" sheet.
So, I have a plan, sort of... and I know how to implement the technical details...I'm looking for alternatives because I don't think this is going to perform good enough to be usable. The idea is each combobox on-change will gather the values in all four comboboxes (whether empty or set), pass those into a sub that will first filter the materials list based on the values, then kick the resulting visible rows into an array, and then the array will be parsed into distinct values in the 4 columns. So, if any of the fields changes, all four are sent into the function to apply the filter and parse the visible rows that remain.
The problem with this is that this sheet is divided into sections and each section has a different number of criteria fields. Also, each section has at least 4 rows and up to 10 rows. So, I will have to have specific events for each control on each row. To top it off, the user can dynamically add and remove rows, so I'll have to have the code to write to the code project the event to call all of these features. That's doable, but definitely tedious and probably inefficient.
At this point, I'm trying to figure out if there is some way to do the part where one combobox results in the others being filtered, where all are based on the same data in a "Materials List" sheet. Any ideas are welcome. I tried proposing a pop-up so I could do all the filtering in a Form, but the business user didn't like that idea, though implementation would be incredibly easier, though still not easy. I've tried data validation drop-downs but you can't type directly into them and you have to assign a range formula to set the values. Since there can be dozens of these drop-downs all pulling from the same sheet, that's not feasible. I've tried a Forms combobox but you can't type directly into it and you also have to add items using a range (afaik)...
Hopefully someone will have a better idea.
Thanks
Rocky
Bookmarks