find/replace macro

  • Thread starter Thread starter trey.balson
  • Start date Start date
T

trey.balson

I need a macro that would take a value from worksheet A, switch to
worksheet B, find the value, go back to worksheet A, move over two
columns, take the value in that column, switch back to worksheet B and
paste. repeat until at the end of the column in worksheet A. Is this
possible in VB?

I haven't coded in a while, and have never used VB, so I'm not really
sure where to start.
 
I need a macro that would take a value from worksheet A, switch to
worksheet B, find the value, go back to worksheet A, move over two
columns, take the value in that column, switch back to worksheet B and
paste. repeat until at the end of the column in worksheet A. Is this
possible in VB?

I haven't coded in a while, and have never used VB, so I'm not really
sure where to start.

Try using a VLOOKUP first. The function will look something like the
following:

=VLOOKUP(B2,[WorksheetA]Sheet1!$A$2:$C$8,3,FALSE)

Matt
 

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