+ Reply to Thread
Results 1 to 6 of 6

Error-1004 Unable to get Match Property of the worksheet Function Class

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Error-1004 Unable to get Match Property of the worksheet Function Class

    Hi,

    Once again,I am getting an error at Line 18 on debugging.

    Please Login or Register  to view this content.
    Let me explain regarding this code result.I have worksheet 'PO' which matches A & K column with Pivot table data in B and C which is in another worksheet/s.The entire row gets highlighted with yellow in Pivot Table if C contains 'Not Approved'.
    I think this will ease.
    Last edited by paradise2sr; 05-26-2019 at 04:36 AM.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Error-1004 Unable to get Match Property of the worksheet Function Class

    Hi !

    Never use WorksheetFunction when the result may be an error ‼ As using a Variant variable and just Application is enough …
    Then you must check the result of the Variant variable via IsError or IsNumeric function.

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Error-1004 Unable to get Match Property of the worksheet Function Class

    Can you revised & revert the code as per Post #1.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,256

    Re: Error-1004 Unable to get Match Property of the worksheet Function Class

    How about this one.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Error-1004 Unable to get Match Property of the worksheet Function Class

    Perfectly worked.But the same code of Post #1 was working last month very fine and was using since last few years but now I don't why it is creating error.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,256

    Re: Error-1004 Unable to get Match Property of the worksheet Function Class

    You're welcome and thanks for rep+.

+ 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. Replies: 3
    Last Post: 05-10-2017, 10:02 AM
  2. run time error 1004 unable to set the hidden property of the worksheet class
    By curness in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2015, 05:41 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 worksheet function class
    By surajitbose in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2012, 06:12 PM
  5. 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
  6. 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
  7. 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