Heatherisace
New Member
- Joined
- Jan 31, 2014
- Messages
- 2
Hello,
I am trying to filter a range of data based on the values a user may select from a Multi Select Listbox, but I cannot get it to work.
I have a working Listbox (Listbox1)
My command button (CommandButton1) does not execute the filter, I have searched and searched, and tried many different codes, but I just can't seem to figure it out.
Here is an example of my Table:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Open[/TD]
[TD]Open[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]Area[/TD]
[TD]Region[/TD]
[TD]Territory[/TD]
[TD]Product X[/TD]
[TD]Product Y[/TD]
[TD]Product X[/TD]
[TD]Product Y[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]1[/TD]
[TD]Joe[/TD]
[TD]1[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]1[/TD]
[TD]Jan[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]2[/TD]
[TD]Jim[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]2[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]3[/TD]
[TD]Jack[/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4[/TD]
[TD]Jill[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4[/TD]
[TD]Jon[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]5[/TD]
[TD]Jeff[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]6[/TD]
[TD]Judy[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
So if this were my table, say on a sheet called "Master", I would want my filter to start in Row 2, and the values in the listbox are values in column A (A, B, and C in this example) of which any combination of could be selected.
Please help, I am stuck
I am trying to filter a range of data based on the values a user may select from a Multi Select Listbox, but I cannot get it to work.
I have a working Listbox (Listbox1)
My command button (CommandButton1) does not execute the filter, I have searched and searched, and tried many different codes, but I just can't seem to figure it out.
Here is an example of my Table:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Open[/TD]
[TD]Open[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]Area[/TD]
[TD]Region[/TD]
[TD]Territory[/TD]
[TD]Product X[/TD]
[TD]Product Y[/TD]
[TD]Product X[/TD]
[TD]Product Y[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]1[/TD]
[TD]Joe[/TD]
[TD]1[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]1[/TD]
[TD]Jan[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]2[/TD]
[TD]Jim[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]2[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]3[/TD]
[TD]Jack[/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4[/TD]
[TD]Jill[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4[/TD]
[TD]Jon[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]5[/TD]
[TD]Jeff[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]6[/TD]
[TD]Judy[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
So if this were my table, say on a sheet called "Master", I would want my filter to start in Row 2, and the values in the listbox are values in column A (A, B, and C in this example) of which any combination of could be selected.
Please help, I am stuck