+ Reply to Thread
Results 1 to 9 of 9

match error

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

    match error

    I am getting the following error using the code below:
    Unable to get the match property of the worksheetfunction class.

    Thanks .

    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: match error

    It's probably because no match has been found.
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: match error

    Hi,

    Just wondering why you are choosing to use VBA when an examination (admittedly not in depth) of your code might suggest that normal Excel functions and conditional formatting could do all you want.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: match error

    Please Login or Register  to view this content.
    is the line that is highlighted and that name is in column Z, row 4. Thanks.

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

    Re: match error

    I am not using conditional formatting because there are multiple things (reformatting,calculations,change_events, etc...) that are being done by this VBA. Thanks.

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

    Re: match error

    I'd look at the workbook but doesn't have any code in it.

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

    Re: match error

    I attached a copy. Thanks .
    Attached Files Attached Files

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

    Re: match error

    The address of the range rData.Rows(4) is annovar!$A$4:$F$4, which kind of like doesn't include column Z.

    If you want to find a value in a row then use the whole row, eg Rows(4)

    Also, not sure using With Application.WorksheetFunction is a good idea, in fact that's the first time I've seen it.

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

    Re: match error

    Thank you.

+ 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] Vlookup to Pivot Table, using Match function, returns error if can't find match value
    By AndrewHowarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 12:10 AM
  2. Match N/A error
    By westafermn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2013, 10:41 PM
  3. Match error
    By ajithjg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2013, 12:01 PM
  4. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  5. Error with match in VBA
    By jrm0523 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2012, 01:44 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