+ Reply to Thread
Results 1 to 9 of 9

code to delete rows

  1. #1
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    code to delete rows

    Hi,

    I need some code to delete 200 rows after the word STOP is found in column F

    Any help greatly appreciated

    Kevin

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: code to delete rows

    Try this
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: code to delete rows

    That code is deleting everything with the exception of the first 2 rows
    I need to delete 200 rows after the word stop

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: code to delete rows

    You said
    Quote Originally Posted by Excelski View Post
    I need some code to delete 200 rows after the word STOP is found in column F
    And the code I posted should do so.

  5. #5
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: code to delete rows

    Sorry... I should have be clearer........ when the word stop is found in column F I need to delete the next 200 rows

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: code to delete rows

    That's what the code should do.

    Upload the workbook.

  7. #7
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: code to delete rows

    i am just boarding a flight ill have to come back to this, thanks for looking

  8. #8
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: code to delete rows

    I tested jindon's code and it deleted the 200 rows right after the word STOP, it didn't skip the 1st 2 rows.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  9. #9
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: code to delete rows

    Hi Jindon

    It did work as you knew. I had a formula to give me the stop which caused the problem.

    Thanks for your help
    Kevin

    I can’t find where to mark as closed on my phone I’ll do it when I get in
    Last edited by Excelski; 01-21-2018 at 01:06 PM.

+ 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. code to find rows with same value in column C:F and delete the rows
    By bezbid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2016, 09:52 AM
  2. Changing code from deleting rows to cut/paste rows into another sheet and delete blank row
    By kmarshall6576 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2013, 01:54 AM
  3. VBA: delete all rows code
    By misszine in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2013, 01:01 PM
  4. code to delete rows with no value/zero
    By brandnka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2010, 09:42 AM
  5. Code to delete rows based on status code in Column I
    By LemonTwist in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2009, 07:01 PM
  6. code to delete rows
    By ianalexh in forum Excel General
    Replies: 5
    Last Post: 05-05-2005, 06:06 AM
  7. Code to delete rows
    By shanemjo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2005, 02:36 PM

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