+ Reply to Thread
Results 1 to 7 of 7

Run-time error '1004' HELP!

  1. #1
    Registered User
    Join Date
    12-15-2010
    Location
    Greenville, South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    60

    Run-time error '1004' HELP!

    Hello all,

    I have been banging my head against the wall trying to figure out why I am getting this error. I have checked to make sure the data types are the same in the cells and have been looking all over the internet to try and find some clue, but to no avail. ANY direction would be helpful! I turned the text red where it is giving me the Run-time error '1004': Unable to get the Find property of the worksheetfunction class.

    Please Login or Register  to view this content.
    Last edited by Decoderman; 07-27-2012 at 10:32 AM. Reason: solved

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Run-time error '1004' HELP!

    Sounds like it's not finding mytable in searchtable.

  3. #3
    Registered User
    Join Date
    12-15-2010
    Location
    Greenville, South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Run-time error '1004' HELP!

    Yes. That is correct. But shouldn't the "On Error GoTo FixIt" account for that? It Instead throws up a Error Message.

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Run-time error '1004' HELP!

    Try
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-15-2010
    Location
    Greenville, South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Run-time error '1004' HELP!

    Stephen. You are a genius. That worked great!

    Might I ask why/what is different about that code?

    I like that it worked but would really like to understand why it worked.

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Run-time error '1004' HELP!

    Well one, you need to check whether it's a number first rather than >0 because if it doesn't find it, you are asking if an error >0 which rubs Excel up the wrong way. For the difference between using application as opposed to worksheetfunction, this man explains it better than I could (error handling section is most pertinent here):

    http://www.cpearson.com/excel/callin...ionsinvba.aspx

  7. #7
    Registered User
    Join Date
    12-15-2010
    Location
    Greenville, South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Run-time error '1004' HELP!

    Thanks a lot of the helpful tips!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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