johnkykong
New Member
- Joined
- Aug 30, 2017
- Messages
- 3
Hi everybody. I am some issues with two pieces of an excel sheet, dealing with a userform.
I currently have two comboboxes. Combo Box 1 is designed to pull category matches. I'm using a combobox here so people can type in A (to autofill) and not have to know all of the categories.
So column A has a ton of categories like "Animal" "Car" "Human" and about 15 other categories. Many of which are duplicated as it is the initial filter. I'd like for the duplicates in this initial filter to not show.
I also need the second combo box to pull only the associated items from the filter in combobox1.
Animal Dog
Food. Banana
Car. Silverado
Human. George
Animal. Cat
When Combobox 1 shows Animal, I only want the items in that category to be selectable for Combo box 2. So the drop-down box for combobox2 would show Dog/Cat in that example.
The problem is that there will be too many categories in column A to make individual association filters. So I'm trying to figure out how to make a parent/child relationship with comboboxes, that can change dynamically. I'm also trying to make the category filter box not show duplicates (not show animal twice in this example).
I've tried to repurpose a few items from other posts... but I think I'm having trouble understanding the underlying code to make Box 1 populate Box 2, without having to make stipulations for *each* category.
I currently have two comboboxes. Combo Box 1 is designed to pull category matches. I'm using a combobox here so people can type in A (to autofill) and not have to know all of the categories.
So column A has a ton of categories like "Animal" "Car" "Human" and about 15 other categories. Many of which are duplicated as it is the initial filter. I'd like for the duplicates in this initial filter to not show.
I also need the second combo box to pull only the associated items from the filter in combobox1.
Animal Dog
Food. Banana
Car. Silverado
Human. George
Animal. Cat
When Combobox 1 shows Animal, I only want the items in that category to be selectable for Combo box 2. So the drop-down box for combobox2 would show Dog/Cat in that example.
The problem is that there will be too many categories in column A to make individual association filters. So I'm trying to figure out how to make a parent/child relationship with comboboxes, that can change dynamically. I'm also trying to make the category filter box not show duplicates (not show animal twice in this example).
I've tried to repurpose a few items from other posts... but I think I'm having trouble understanding the underlying code to make Box 1 populate Box 2, without having to make stipulations for *each* category.