UserForm ListBoxes Dependant Selections

crashing1912

New Member
Joined
Sep 8, 2011
Messages
19
Hi All,

I am creating a couple of listboxes for my users. The first listbox is a list of clients. The second list is a list of projects. I have a separate macro running to copy and paste some data depending on the users' selections. I need to give the users the ability to run either a client report or a project report, hence the two listboxes and separate command buttons. Since, my project list is pretty long I was wondering if there was a way to let the users narrow the results in the project list listbox based on their selection from the client listbox.

My listboxes are using the RowSource property from two columns in sheet1:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Client Listbox Values
[/TD]
[TD]Project Listbox Values
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]1234
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]12345
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]123456
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]1234567
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]4321
[/TD]
[/TR]
</tbody>[/TABLE]

Also, the list is dynamic. The list above is based on an index match to obtain just the unique values from the data, so if I could incorporate a way to ignore the blank cells/"" results from the index match, that would be helpful.

Thanks!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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