+ Reply to Thread
Results 1 to 6 of 6

Error Unable to Get Vlookup property

  1. #1
    Registered User
    Join Date
    12-09-2015
    Location
    Albania
    MS-Off Ver
    2007
    Posts
    3

    Question Error Unable to Get Vlookup property

    ID PM REF DESC
    1 11 22 une
    2 22 23 ti
    3 33 43 ai
    4 44 55 ajo
    5 55
    6 66

    For this table I want to get values that Ref = PM and want to get the value of DESC. I wrote this code but I don't find what's wrong.

    Please Login or Register  to view this content.
    Please give me a suggestion

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Error Unable to Get Vlookup property

    Why have you defined "v_master" as the two cells C3:C4 ? Surely your table should cover B2:D7, with the lookup value searching column B. You want to return the value from the 3rd column of this table, not the second.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-09-2015
    Location
    Albania
    MS-Off Ver
    2007
    Posts
    3

    Re: Error Unable to Get Vlookup property

    no that is defined as 2 columns, the 3rd and the 4th because i dont know how much values would be. thank you anyway.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Error Unable to Get Vlookup property

    Debugging can be a frustrating, but essential part of coding. If you are unfamiliar with the various debugging strategies, I would suggest that you learn the tools and strategies available: http://www.cpearson.com/Excel/DebuggingVBA.aspx One of the most useful, I find, is the ability to step through a procedure one line at a time.

    With VLOOKUP() or other lookup functions, the usual error is that the lookup value (v_item) is not present in the left column of your lookup table (named range "v_master" which refers to columns 3 through 4). I would suggest that you step through the code and, just before it executes the lookup statement, look at the values in v_item and compare that to what you know is in column 3. Check the value of v_item to make sure it is the value you expect, make sure that v_master is pointing to the range you expect, then make sure that the value of v_item (11 if I followed correctly) is present somewhere in column 3 (which it does not appear to be).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Error Unable to Get Vlookup property

    The first value you look up, 11, is not in column 3.
    If posting code please use code tags, see here.

  6. #6
    Registered User
    Join Date
    12-09-2015
    Location
    Albania
    MS-Off Ver
    2007
    Posts
    3

    Re: Error Unable to Get Vlookup property

    thank you for suggestions of debugging the column that I want to appear is: #n/a une #n/a #n/a ajo #n/a. I want values for PM that are reggistred before in REF and Desc.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. “Unable to get the VLookup property of the WorksheetFunction Class” error
    By lougs7 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-13-2015, 11:22 AM
  2. Unable to get the PivotFields property error
    By Anthem12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2013, 08:14 PM
  3. error 1004 unable to get the vlookup property of the worksheet function class
    By steve99g in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2013, 04:35 PM
  4. Run-time Error 1004: Unable to get the VLookup property of the WorksheetFunction class
    By sridhar_neel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2012, 04:21 AM
  5. Run time error 1004 unable to get the vlookup property of the worksheet function class
    By surajitbose in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2012, 06:12 PM
  6. Run-time error '1004': Unable to get the VLookup property of the WorksheetFunction c
    By BlondOIverBlue in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2010, 12:37 AM
  7. Replies: 1
    Last Post: 11-22-2010, 06:10 AM

Tags for this Thread

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