Simple Autofilter throgh TEXT Boxes

harshab6

Active Member
Joined
Oct 1, 2008
Messages
254
Hi Experts,
Is there any way where I could do autofilter customs using text boxes.whatever I enter in text box it should filter in excel sheets those data using Auto filer Customs both numbers and alphabetsl.Does any one have the idea how to do this.
For eg-

Range("A1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$C$4").AutoFilter Field:=2, Criteria1:="=121450", _(the creteria may be number or name or any long discription)
Operator:=xlAnd
In criteria I Would like to appear whatever I type in text boxes i don't want Criteria1:="=*" Because this doesn't filter numbers it filters only test.is there any other way to do it.

Regards
Harsha
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,224,524
Messages
6,179,304
Members
452,904
Latest member
CodeMasterX

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