How to code dependent combo boxes on large amounts of data?

scottns

New Member
Joined
Mar 28, 2014
Messages
1
First off thank you for your help in advance.

I would like to use three different combo boxes to drill down into an analysis. Each combo box represents a level in a product hierarchy (For example, Department --> Category --> Subcategory). I would like the user to be able to select an option from the Department Combo box (i.e. Fruit) and then have just the categories for that department show up in the Category combo box (i.e. Apples, Oranges, etc.) and so on for the Subcategory combo box (i.e. Fuji apples, Golden Apples, etc.). I have already completed the part where once the users selects a subcategory, the sheet will populate with the data for that subcategory.

I am hoping there is a way to do this automatically instead of "hard coding" this in VBA. For example, an If statement saying if select Dept1, then show Category1, Category2, etc. This is just not doable with the amount of options available: 10 departments, 50 categories, and 400 subcategories.

Any ideas would be helpful.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,216,495
Messages
6,130,979
Members
449,611
Latest member
Bushra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top