+ Reply to Thread
Results 1 to 5 of 5

unable to get match property error in userform derived index match

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    unable to get match property error in userform derived index match

    Hello,
    I am having some issues with a userform derived vlookup
    I have the code below pulling from a textbox named TextBox1 and doing index matches off of it to then put the summary info in a messagebox

    I keep getting a "Unable to get the Match property of the worsheetfunction class" error message on the formula lines
    does someone know what is wrong with it?

    Please Login or Register  to view this content.

    Thanks

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: unable to get match property error in userform derived index match

    We need to see the workbook.

    ViewPic.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: unable to get match property error in userform derived index match

    I can't test this because I have nothing to test it with. However, if it were me, I'd write it like this given that a) you are using worksheet functions and b) you are using the MATCH several times.

    Please Login or Register  to view this content.

    It's not so repetitive, it's easier to read, it isolates the Match, and you can, therefore, test the value returned.

    To investigate further, I would need a sample workbook with some typical data and all the code.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: unable to get match property error in userform derived index match

    Hello,
    Thank you for the response
    please find attached the file
    I must be doing something wrong, I have this lookup going both ways (two text boxes and two submit buttons to look up column A in G and vice versa but one of them works and the other gives an error
    lookup tool.xlsm

  5. #5
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: unable to get match property error in userform derived index match

    The values in text boxes are returned as text. So for example your ICD-9 values in column A are numbers, so you need to change the text box output to a number. You can use Val.

    CommandButton7 code:
    Please Login or Register  to view this content.

+ 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. runtime error 1004 unable to get match property
    By AAvcal71 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2014, 03:10 PM
  2. [SOLVED] Run-time error 1004 - Unable to get the match property of WorksheetFucntion lass
    By Gard5096 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-11-2012, 10:42 AM
  3. [SOLVED] Userform Match - unable to get the match property of the worksheetfunction class - Help!
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2012, 11:01 AM
  4. Run-time error '1004': Unable to get the Match property of Worksheetfunction class
    By krish T in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-27-2010, 10:04 PM
  5. Run-time error 1004: Unable to get the Match property of the WorksheetFunction class
    By maffmommie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2010, 09:32 AM
  6. run-time error '1004 Unable to get Match property of WorksheetFunction class
    By exl044 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2010, 02:23 AM
  7. how to fix "Unable to get match property error"?
    By adds007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-29-2010, 08:42 AM

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