+ Reply to Thread
Results 1 to 2 of 2

Unable to get the Vlookup property of the WorksheetFunction class

  1. #1
    DoctorG
    Guest

    Unable to get the Vlookup property of the WorksheetFunction class

    Target.Offset(0, 1).Value = WorksheetFunction.VLookup(target_string,
    D_PELATES, 2, 0) produces the above error. Any ideas?


  2. #2
    Tom Ogilvy
    Guest

    RE: Unable to get the Vlookup property of the WorksheetFunction class

    That would be indicative of
    A: bad arguments
    B: the value was not found.

    Try this

    Target.Offset(0, 1).Value = Application.VLookup(target_string,
    D_PELATES, 2, 0)

    If that doesn't solve it then another guess on the problem is then D_Pelates
    is actually a named range. Then it would be:


    Target.Offset(0, 1).Value = Application.VLookup(target_string,
    Range("D_PELATES"), 2, 0)

    --
    Regards,
    Tom Ogilvy


    "DoctorG" wrote:

    > Target.Offset(0, 1).Value = WorksheetFunction.VLookup(target_string,
    > D_PELATES, 2, 0) produces the above error. Any ideas?
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1