Hello mrgillus,
The following macro has been added to "Sheet1" to run the macro. Each over due date found is first displayed in a message box and copied to the sheet with the CAR number and the due date.
Sub CheckDates()
Dim Cell As Range
Dim DueDate As Variant
Dim Dst As Range
Dim DstWks As Worksheet
Dim LogWks As Worksheet
Dim NextRow As Long
Dim Rng As Range
Dim RngEnd As Range
Set DstWks = Worksheets("Sheet1")
Set LogWks = Worksheets("Log")
Set Dst = DstWks.Range("A1")
Set RngEnd = DstWks.Cells(Rows.Count, Dst.Column).End(xlUp)
Set Dst = DstWks.Range(Dst, RngEnd)
Set Rng = LogWks.Range("A2")
Set RngEnd = LogWks.Cells(Rows.Count, Rng.Column).End(xlUp)
Set Rng = IIf(RngEnd.Row < Rng.Row, Rng, LogWks.Range(Rng, RngEnd))
For Each Cell In Rng
DueDate = Cell.Offset(0, 12)
If DateDiff("d", DueDate, Now()) > 30 Then
MsgBox "CAR # " & Cell & " was due on " _
& DueDate & " and is now overdue!"
NextRow = NextRow + 1
Dst.Offset(NextRow, 0) = Cell
Dst.Offset(NextRow, 1) = DueDate
End If
Next Cell
End Sub
Bookmarks