Dependent List Box (Non Data Validation)

jaysunice

New Member
Joined
Jan 13, 2011
Messages
12
Surely someone has made dependent List Box (Form Controls) before? How is this done since you cannot use INDIRECT()?

I've tried searching, but everyone references the Data Validation / Indirect method? I'm looking for something that would use the List Box Form Control.

Thanks!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Say for example, I have:

Fruits: Apple, Pear, Orange
Vegetables: Carrot, Celery, Potato, Spinach
Dairy: Milk, Cheese, Cream, Butter

I want ListBox 1 to drop-down and display (Fruits, Vegetables, Dairy) -- then, ListBox 2 will dependently display the appropriate list (Apple, Pear, Orange OR Carrot, Celery, Potato, Spinach, OR Milk, Cheese, Cream, Butter).
 
Upvote 0
Thanks BrianExcel!

I was actually trying to do this with Forms Controls rather than ActiveX, but this will do the job.

Nice clean code too -- definitely a worthwhile example for everyone to put in their back pocket.
 
Upvote 0
No problem.
Actually, doing it on a form is just about as easy. In the code, instead of referencing
Code:
Sheets("Sheet1").listbox(or .combobox, etc)

You would reference

Code:
Userform1(or whatever you name it here).listbox(or.combobox, etc)

Glad I could help!
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,767
Members
452,940
Latest member
rootytrip

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