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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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