Filtering column for input in ListBox

Kristina96

New Member
Joined
Sep 30, 2019
Messages
33
Hello everyone.

I have a document with a userform that allows users to select a specific area in a list box. Multiple selections are possible.
Based on the input I would like to filter column E called "AreaColumn" for the input made by a user when cofirming the user form with OK.

So far I've tried something like this:
VBA Code:
Private Sub OKButton_Click()
ActiveSheet.Range("AreaColumn").AutoFilter Field:=1, Criteria1:=ListBox1.Value
End Sub

Unfortunately it does not bring the desired result but simply doesn't change the situation.
Could you help me with that?

Thank you in advance and best regards,
Kristina
 
Ok, this is now a different question to your op, so you will need to start a new thread.
When you do, you will need to give far more information, please remember that we cannot see your data & we have no idea what "all other possible selections" could be.
Thanks
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,215,575
Messages
6,125,613
Members
449,238
Latest member
wcbyers

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