search and copy

  • Thread starter Thread starter jjohn
  • Start date Start date
J

jjohn

Without moving the cursor from the active cell, I need a
code that will look across Row 1 in Sheet2 and find the
one value that will match the value in Sheet3!A1. I then
need it to copy that row.
 
Not sure what you want to copy, but X will contain the *column* number where
the match was found:

X = Application.Match(Worksheets("Sheet3").Range("A1"), _
Worksheets("Sheet2").Rows(1),0)
 

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

Back
Top