Autofilter a range like the Search box

Vetsus

New Member
Joined
Feb 2, 2014
Messages
35
i have been trying to figure out for quite some time now how to autofilter a set range that contain a specific value... in this case we'll use the value "9". so i want it to filter the entire column to show all values that contain a 9, this could be something like "9", or "19", or maybe "1,9", so really anything..... i have tried to use the example above as "*9*" but it only ends up displaying 2 values which are "15,19,20,22". can anybody explain what i may be doing wrong or if maybe there is something i am missing. this particular code set is:
.autofilter field:=4, Criteria1:="*" & TextBox3.Value & "*"

where "textbox3" obviously where i would enter a 9
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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