+ Reply to Thread
Results 1 to 6 of 6

run time error 1004 no cells were found

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    35

    run time error 1004 no cells were found

    Please Login or Register  to view this content.
    i am using this code to find the next empty row in column A and place the name and time in A and C respectively. It works fine for the first 4 uses, then i get the run time error.

    What isn't correct?

    thanks

  2. #2
    Registered User
    Join Date
    05-07-2014
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: run time error 1004 no cells were found

    this is the entire sub...

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: run time error 1004 no cells were found

    so I read a similar post in MrExcel, the user cleared and formatted the cells and it worked, for a short time. I did the same thing and now it works ok. The sheet "TimeLog" was a brand new sheet, with not data entry at all except the testing I was doing. Any explanation as to what happened?

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: run time error 1004 no cells were found

    Hi iwannabakat

    It's difficult to say without seeing the Code in the Workbook. Perhaps it's as simple as declaring NextFree as Long. See this

    http://www.ozgrid.com/VBA/variables.htm
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  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: run time error 1004 no cells were found

    Instead of using SpecialCells try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  6. #6
    Registered User
    Join Date
    05-07-2014
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: run time error 1004 no cells were found

    thanks jaslake. I did try that before posting, same results.

+ 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] Alternative message box instead of run time error 1004 box no cells were found
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2013, 04:26 AM
  2. [SOLVED] Run Time Error Message 1004 : No Cells were found
    By brajpalshishodia in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-15-2012, 12:52 PM
  3. Run-time error '1004': No cells were found
    By tirk82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2012, 12:48 PM
  4. Microsoft Visual Basic Run-time error '1004' No cells were found
    By Paul Riker in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-28-2005, 01:05 AM
  5. [SOLVED] Run-time error '1004': No cells were found
    By Jamie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2005, 06:06 PM

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