auto filter macro

L

Larry

In using the auto filter (Selection.AutoFilter Field:=2, Criteria1:="<>") in
a macro is it possible to have the "Criteria1" value equal the value of a
cell (eg. F3)
 
N

Norman Jones

Hi Larry,

Try something like:

Selection.AutoFilter Field:=2, _
Criteria1:=Range("F3").Value
 

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