Macro Question

G

Guest

I'm using this macro:

Range("A2").Select
Selection.Copy
Sheets("TMS").Select
Range("Y2").Select
Selection.AutoFilter Field:=23, Criteria1:="=BOX074", Operator:=xlAnd
Range("F1").Select
Sheets("CheckNamesSent").Select

I am trying to have the "A2" copy inserted into the Criteria1:

Is it possible ?

Thank you in advance.
 
G

Guest

Don't use Copy

Dim s as String
..
..
..
s="=" & Range("A2").Value
..
..
..
Selection.AutoFilter Field:=23, Criteria1:= s, Operator:=xlAnd
 

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