+ Reply to Thread
Results 1 to 3 of 3

run-time error '1004 Unable to get Match property of WorksheetFunction class

  1. #1
    Registered User
    Join Date
    07-08-2010
    Location
    glendale
    MS-Off Ver
    Excel 2007
    Posts
    2

    Unhappy run-time error '1004 Unable to get Match property of WorksheetFunction class

    hello,

    i'm trying to write a macro that colors in cells in a table if the number in the cell matches with a number in another column, but i get run time error '1004.

    any idea? i tried so many things but it seems that i can't re-use range() in a for loop? can someone please help me??????

    exl044

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by davesexcel; 07-08-2010 at 01:05 AM. Reason: Code tags are required when supplying code, check out the forum rules

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: run-time error '1004 Unable to get Match property of WorksheetFunction class

    Hi Exl044, welcome to the forum.

    Rather than using Application.WorksheetFunction.Match, just use Application.Match. Below is your code with a few minor adjustments and should work as intended.
    Please Login or Register  to view this content.
    Hope that helps!

  3. #3
    Registered User
    Join Date
    07-08-2010
    Location
    glendale
    MS-Off Ver
    Excel 2007
    Posts
    2

    Thumbs up Re: run-time error '1004 Unable to get Match property of WorksheetFunction class

    hi paul,

    thank you so much for your quick response!! you saved me a lot of time!! everything worked as intended!! i knew what i wanted the macro to do but i was about to give up since i'm a macro newbie and couldn't figure it out. now i can show my boss my new idea. thank you again!!

    exl044

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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