autofilter using macro

K

kkanil

Hello friends... I would be very happy if anyone could help me in
this...

I want to write a macro to autofilter a particular column > the input
given will be some string > the output i should get is all the entries
containing that string in that particular column.

I have used the below line for autofilter, but the problem is the
crieteria it takes is "equal", i want to put the critieria as "content"
which means i should get all the entries CONTAINING the particular
entry.

Selection.AutoFilter Field:=1, Criteria1:="customer"

any inputs??????

Thanks!!!!!!!!
Anil
 
J

John Green

Anil,

Try

Selection.AutoFilter Field:=1, Criteria1:="*customer*"


* is a wild card that matches any sequence of characters, including none.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top