View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Doug Glancy[_2_] Doug Glancy[_2_] is offline
external usenet poster
 
Posts: 11
Default Using the Vlookup Function in VB Code

Here's a sample:

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

hth,

Doug

"Juanfer" wrote in message
...
Anyone has samples of VB code in which the Vlookup
function is used. I canīt get it to work.