+ Reply to Thread
Results 1 to 15 of 15

Deleting rows by searching a specific word or empty cell.

  1. #1
    Registered User
    Join Date
    09-19-2014
    Location
    goa,india
    MS-Off Ver
    MS excel 2007
    Posts
    24

    Deleting rows by searching a specific word or empty cell.

    Hello All,

    I would like to delete the entire row I the 15th column will have an empty cell. I used this code but it stops when It reach another empty cells.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Deleting rows by searching a specific word or empty cell.

    This one works for me (EndNumber is the total amount of rows you have):

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Deleting rows by searching a specific word or empty cell.

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-19-2014
    Location
    goa,india
    MS-Off Ver
    MS excel 2007
    Posts
    24

    Re: Deleting rows by searching a specific word or empty cell.

    Hello Bmouse it works same has mine. I have to run the Macros many times for it to clear all the cells in 15th column with empty cells.

  5. #5
    Registered User
    Join Date
    09-19-2014
    Location
    goa,india
    MS-Off Ver
    MS excel 2007
    Posts
    24

    Re: Deleting rows by searching a specific word or empty cell.

    Hello John. the last cell in the Oth column is empty and so it did not get deleted. so I thing the count is not right. sometimes even last 4 or 5 cells will have no value and need to be deleted. so the count need to be set properly it . the count can be associated with the Ath column and it may work.

  6. #6
    Registered User
    Join Date
    09-19-2014
    Location
    goa,india
    MS-Off Ver
    MS excel 2007
    Posts
    24

    Re: Deleting rows by searching a specific word or empty cell.

    Hello John. the last cell in the Oth column is empty and so it did not get deleted. so I thing the count is not right. sometimes even last 4 or 5 cells will have no value and need to be deleted. so the count need to be set properly it . the count can be associated with the Ath column and it may work.

  7. #7
    Registered User
    Join Date
    09-19-2014
    Location
    goa,india
    MS-Off Ver
    MS excel 2007
    Posts
    24

    Re: Deleting rows by searching a specific word or empty cell.

    Hello Bmouse it works same has mine. I have to run the Macros many times for it to clear all the cells in 15th column with empty cells.

  8. #8
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Deleting rows by searching a specific word or empty cell.

    Ok, try this, it starts running from the end, so it shouldn't overlap any cells.

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Deleting rows by searching a specific word or empty cell.

    Hello Erick,

    Perhaps this option may work:-


    Please Login or Register  to view this content.

    Cheerio,
    vcoolio.

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Deleting rows by searching a specific word or empty cell.

    Ok, try:

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    09-19-2014
    Location
    goa,india
    MS-Off Ver
    MS excel 2007
    Posts
    24

    Re: Deleting rows by searching a specific word or empty cell.

    Same error:the last cell in the Oth column is empty and so it did not get deleted. so I thing the count is not right. sometimes even last 4 or 5 cells will have no value and need to be deleted. so the count need to be set properly it . the count can be associated with the Ath column and it may work.

  12. #12
    Registered User
    Join Date
    09-19-2014
    Location
    goa,india
    MS-Off Ver
    MS excel 2007
    Posts
    24

    Re: Deleting rows by searching a specific word or empty cell.

    Amazing works perfectly thanks

  13. #13
    Registered User
    Join Date
    09-19-2014
    Location
    goa,india
    MS-Off Ver
    MS excel 2007
    Posts
    24

    Re: Deleting rows by searching a specific word or empty cell.

    Nothing is Happening Bmouse, John's code works perfectly Thanks anyway

  14. #14
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Deleting rows by searching a specific word or empty cell.

    I reset it too the A Column. So therefore that's not the longest column. Try:

    Please Login or Register  to view this content.

  15. #15
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Deleting rows by searching a specific word or empty cell.

    Quote Originally Posted by erickmcburger View Post
    Amazing works perfectly thanks
    You're welcome. Glad to help out and thanks for the feedback. Please mark this thread as SOLVED.

+ 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] Another Deleting Rows that do not Contain specific word....
    By bennerzuk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-08-2014, 07:19 PM
  2. Deleting rows if specific cell is blank or have specific text
    By JoaoFerreira1985 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2013, 01:18 PM
  3. Deleting rows with empty cells in a specific column
    By vzw1965 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2011, 10:55 AM
  4. Deleting empty rows if specific cell in row is empty
    By csynic in forum Excel General
    Replies: 0
    Last Post: 07-06-2011, 01:43 AM
  5. Deleting rows based on data in a specific cell
    By minimimerr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2010, 06:10 PM
  6. Autofilter/delete empty rows is deleting non-empty rows!
    By oOarthurOo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2010, 12:31 PM
  7. Deleting rows if cell is empty
    By benlawton in forum Excel General
    Replies: 3
    Last Post: 05-15-2009, 10:02 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