Results 1 to 9 of 9

Delete Rows Which Have Date 7 Days Old

Threaded View

  1. #1
    Registered User
    Join Date
    01-08-2010
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003
    Posts
    29

    Question Delete Rows Which Have Date 7 Days Old

    Hi,

    I was wondering if somebody could help me with a little bit of code?

    When the sheet is opened, I would like some code to search down column A, starting from cell "A5" and delete all rows which contain a date which is greater than 7 days ago.

    The dates are in order from the most recent being at the top.

    For example:
    Today is 29/01/2010, I would like all rows which have a cell in column A containing Today-7() to be deleted. 28/01/2010 to stay. 19/01/2010, delete row.


    Hope that makes sense?

    Cheers,

    LSM

    *cross post @ http://www.mrexcel.com/forum/showthread.php?t=444663*
    Last edited by LSM1604; 01-31-2010 at 05:28 PM. Reason: Solved :D

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