Using the Vlookup Function in VB Code

J

Juanfer

Anyone has samples of VB code in which the Vlookup
function is used. I can´t get it to work.
 
D

Doug Glancy

Here's a sample:

mydata= Application.WorksheetFunction.VLookup _
(lookup_cell.Value, Worksheets("mysheet").Range("lookup_range"), 2)

hth,

Doug

Anyone has samples of VB code in which the Vlookup
function is used. I can´t get it to work.
 

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