Vlookup in user defined function

  • Thread starter Thread starter Tim Svensson
  • Start date Start date
T

Tim Svensson

I have a user defined function, but Vlookup doesnt work in
it. This i the part in the function that doesn't work...
any ideas?

thanks

/Tim


Function test(value, table)

test = VLookup(value, table, 2, False)

End Function
 
I think you need ot qualify it fully, as in
test = Application.WorksheetFunction.VLookup(value, table, 2, False)
 

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