Consulting

Results 1 to 2 of 2

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

  1. #1

    Unable to get the Vlookup property of the WorksheetFunction class

    Hi

    My macro is correct.

    However, sometimes, there is Run-time error ‘1004’. And tell me that “Unable to get the vlookup property of the WorksheetFunction class”.

    Any idea?


    [VBA]
    Range(“a1”).value=application.worksheetfunction.vlookup(“d”, columns(“C:E”),3,false).value
    [/VBA]


    Thanks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Are you sure the value is in the target table? Try using just

    Application.VLookup
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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