Hi Zak,
This routine should do your job. The dates to test are in column x:
Sub DeleteRowsbyDate()
For Each cll In Range([x1], [x1].End(xlDown))
If IsDate(cll) And cll > Now() Then _
cll.EntireRow.Delete
Next
End Sub
CAUTION!! Use with care... you cannot undo these changes.
regards,
Lazzzx
"Zak" <(E-Mail Removed)> skrev i meddelelsen
news:7F31C1C1-BCAC-4F64-802C-(E-Mail Removed)...
> Hi, i asked this question in a previous thread but it still hasnt been
> answered and a couple of my other questions have so was wondering whether
> i
> need to re-submit.
>
> i want to write a macro that will recognise that the date in column x is
> beyond
> todays date and then delete the rows.
>
> So, if the date in column X is beyond/greater than todays date (and this
> date
> should be the current day) then the rows should be deleted.
>
> thanks.
|