Unable to get VLOOKUP property

  • Thread starter Thread starter cici
  • Start date Start date
C

cici

Thank Frank and Rob for answering my question earlier.
Here is the problem again.

I tried:
Application.WorksheetFunction.VLookup()

Then, I got this run-time error:
"Unable to get the VLOOKUP property of the
WorksheetFunction class"

Thank you.
 
This error occurs in some circumstances when no match could be located.
Instead use the syntax:

Dim vResult As Variant
vResult = Application.VLookup(...)
If IsError(vResult) Then
''' Value could not be located
Else
''' Value was located and is contained in vResult.
End if

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *
 

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

Similar Threads

Vlookup in VBA 4
VLookUp Function 3
VBA userform Vlookup Excel 1
VLookup in VBA Help Needed 9
VLookup error 4
Vlookup Error 0
VLookup Function in VB 5
Vlookup property missing 3

Back
Top