Filter ListBox to show only need row after Userform populate , Filter by OptionButton

Hasegawa

New Member
Joined
Oct 31, 2018
Messages
10
[TABLE="width: 200"]
<tbody>[TR]
[TD]10-NOV-18[/TD]
[TD]AA[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]DF[/TD]
[TD]aa[/TD]
[/TR]
[TR]
[TD]11-NOV-18[/TD]
[TD]BB[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]DT[/TD]
[TD]bb[/TD]
[/TR]
[TR]
[TD]12-NOV-18[/TD]
[TD]CC[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]DF[/TD]
[TD]cc[/TD]
[/TR]
[TR]
[TD]12-NOV-18[/TD]
[TD]DD[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]DT[/TD]
[TD]dd[/TD]
[/TR]
</tbody>[/TABLE]
ListBox in Userform

[TABLE="width: 100"]
<tbody>[TR]
[TD]All[/TD]
[TD]DF[/TD]
[TD]DT[/TD]
[/TR]
</tbody>[/TABLE]
OptionButton in Userform too

Dear All Masters,

I create a Userform which has ListBox and OptionButton on the bottom of userform

1- I want to filter ListBox after it is populated by OptionButton to show only rows with data "DF" or "DT" on column 5
2- I want to show all data when I select OptionButton "All"

Pls kindly help me accordingly. Your help is very much appreciated. Thanks All Sir(s).
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

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