+ Reply to Thread
Results 1 to 4 of 4

Run-time error 1004 no cells were found

  1. #1
    Registered User
    Join Date
    05-27-2021
    Location
    San Diego, Ca
    MS-Off Ver
    MS Office 365
    Posts
    8

    Post Run-time error 1004 no cells were found

    Hi everyone!

    I am new to vba coding and came across an error message where I do not know how to fix. I am trying to delete the entire row within that range if the cell is blank. It was working fine until I receive error message: "Run-time error 1004 no cells were found". What is best way to get around this? Thanks in advance!

    With Range("C524:C532")
    .Value = .Value
    .SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    End With

    With Range("C510:C518")
    .Value = .Value
    .SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    End With

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,525

    Re: Run-time error 1004 no cells were found

    Try

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-27-2021
    Location
    San Diego, Ca
    MS-Off Ver
    MS Office 365
    Posts
    8

    Re: Run-time error 1004 no cells were found

    That worked, thank you so much! Appreciate the help!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,525

    Re: Run-time error 1004 no cells were found

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Run-time error 1004 no cells were found
    By ~TaC~ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2019, 03:30 AM
  2. [SOLVED] run time error 1004 no cells were found
    By iwannabakat in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2014, 04:13 PM
  3. [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
  4. [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
  5. 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
  6. [SOLVED] 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
  7. [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