Hi
I want to use the value that is input into textbox1 to filter on.
It should filter all the data that contains the value in the textbox.
I wrote a macro to record the contains filter and was given this:
Selection.AutoFilter Field:=1, Criteria1:="=**", Operator:=xlAnd
I have tried to modify it but cannot get the conatins part to work
The code below I thought would work but the filter type is "ends with" rather than contains. The value is picked up correctly from textbox1.
Selection.AutoFilter Field:=1, Criteria1:="=**" & TextBox1.Value, Operator:=xlAnd
Any Advice?