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:
Client Listbox Values
Project Listbox Values
A
1234
A
12345
B
123456
C
1234567
C
4321

<tbody>
</tbody>

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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,216,101
Messages
6,128,835
Members
449,471
Latest member
lachbee

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