+ Reply to Thread
Results 1 to 6 of 6

match property error

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    match property error

    Unable to get the Match property of the WorksheetFunction Class, with the yellow line highlighted.

    Please Login or Register  to view this content.
    [/COLOR]

    the headers in row 4 are:
    HTML Code: 
    Thank you .

  2. #2
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    Re: match property error

    Here is the full code:

    Please Login or Register  to view this content.
    I tried changing the With Application and Dim Classification As String and get a type mismatch error with the same line in blue highlighted. Thanks.

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

    Re: match property error

    Why aren't you using the 3rd argument of Match?

    Also, have you checked for trailing/leading spaces in the header(s) on the sheet?
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    Re: match property error

    There are no leading or trailing spaces.

    Initially, I had:
    Please Login or Register  to view this content.
    , but The address of the range rData.Rows(4) is annovar!$A$4:$F$4 and I want a value in that entire row. Is that what you mean by 3rd argument? Thanks.

  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: match property error

    The 0 is the 3rd argument and you don't have it in the first code you posted.

    Also, in that first code there's no sheet reference for Rows(1) or Rows(4) so they will refer to the currently active sheet.

  6. #6
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    Re: match property error

    Thank you very much, it is working

+ 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. [SOLVED] Excel run-time error '381': Could not set the List property. Invalid property array index
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-20-2012, 12:48 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. 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
  4. 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
  5. 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

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