Vlookup in a macro

  • Thread starter Thread starter cultgag
  • Start date Start date
C

cultgag

Hi,

What I'm trying to do is search get a part number in a worksheet and
match that number with a separate .csv file that's open. I'm trying to
use Vlookup but am unsure of how to reference the .csv file any help
will be greatly appreciated!

TIA

Sheet1.Cells(row_Numb, 5).Value =
Application.VLookup(Sheet.Cells(row_Numb, 1).Value,
Inv.csv!$A$1:$G$250, 5, False)

This is what I have...:confused:
 
Try

Application.VLookup(Sheet.Cells(row_Numb, 1).Value, _
Worksheets("Inv.csv").Range("$A$1:$G$250"), 5, False)


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Actually, no-one on the site responded. You got one response from a guy in
Google, and mine was from within the public NGs <G>
 

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