Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Geo,
this is Hassan. Without going into details and on a smaller sample data I tried Mike's first code it worked without any err. regards "Geo" wrote: Thanks Dave and Gord, I did retype the code and it works fine now. Thanks very much for your help and patients. Cheers! -- Geo "Mike H" wrote: Maybe, Right click the sheet tab, view code paste this in and run it:- Sub deleteit() lastrow = Range("A65536").End(xlUp).Row For x = lastrow To 1 Step -1 If Cells(x, 1).Value < Date - 365 Then Range("A" & x & ":P" & x).ClearContents End If Next End Sub Mike "Geo" wrote: What is the code for deleting data that is 1 year old ( a rolling year). Dates are on column A and data runs from columns B to P. -- Geo |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting cell data without deleting formula | Excel Discussion (Misc queries) | |||
Months auto-filter with year twist | New Users to Excel | |||
Excel 2002 auto deleting | Excel Discussion (Misc queries) | |||
auto deleting defined rows | Excel Discussion (Misc queries) | |||
Auto Year scale | Charts and Charting in Excel |