Results 1 to 10 of 10

Delete table after certain cell

Threaded View

adam1230 Delete table after certain... 11-08-2011, 02:13 PM
jomili Re: Delete table after... 11-08-2011, 03:33 PM
adam1230 Re: Delete table after... 11-08-2011, 03:50 PM
jomili Re: Delete table after... 11-08-2011, 03:54 PM
adam1230 Re: Delete table after... 11-08-2011, 04:16 PM
jomili Re: Delete table after... 11-08-2011, 04:23 PM
adam1230 Re: Delete table after... 11-08-2011, 04:38 PM
jomili Re: Delete table after... 11-08-2011, 04:48 PM
adam1230 Re: Delete table after... 11-08-2011, 05:49 PM
jomili Re: Delete table after... 11-10-2011, 05:05 PM
  1. #1
    Registered User
    Join Date
    08-29-2011
    Location
    Happy, KY
    MS-Off Ver
    Excel 2003
    Posts
    28

    Delete table after certain cell

    Hello,

    I need to delete the row and the rest of the rows on my worksheet after a certain cell is found on a row.

    I have rows of dates, if the date is older than 9 days then I want to delete the contents of that row and all the rows until the end of the table. I was using the following method but it takes FOREVER because it only deletes each row one at a time and I have hundreds of rows.


    For Each cell2 In List2
    If cell2 > Date - 9 Then ActiveCell.EntireRow.Delete
    Next cell2

    I want something like this but obviously something that works in VBA

    For Each cell2 In List2
    If cell2 > Date - 9 Then (cell2.EntireRow through rows.End).delete
    Next cell2
    Please help
    Thanks in advance,
    Adam
    Last edited by adam1230; 11-08-2011 at 05:49 PM.

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