Option Explicit
Private Sub Workbook_Open()
Const daysDiff = [COLOR=#ff0000]90 [/COLOR]'number of days to go back[COLOR=#ff0000][/COLOR]
Const sheetNm = "[COLOR=#ff0000]Sheet1[/COLOR]" 'name of the worksheet containing the data to be deleted
Const dateCol = "[COLOR=#ff0000]A:A[/COLOR]" 'column with dates to check
Dim rngColl As Range, wsh As Worksheet, rng As Range, cc As Range
Set wsh = ThisWorkbook.Worksheets(sheetNm)
With wsh.Range(dateCol)
Set rng = Union(.SpecialCells(xlCellTypeFormulas), .SpecialCells(xlCellTypeConstants))
End With
For Each cc In rng
If rng.Value = (Date - daysDiff) Then [COLOR=#0000ff]'maybe here you should use [B]<=[/B] instead of =[/COLOR]
If Not rngColl Is Nothing Then
Set rngColl = Union(rngColl, cc)
Else
Set rngColl = cc
End If
End If
Next cc
If Not rngColl Is Nothing Then rngColl.EntireRow.Delete
Set rngColl = Nothing
Set wsh = Nothing
Set cc = Nothing
Set rng = Nothing
End Sub