I have a pretty simple request, but getting an error with the range.
When the workbook is open, I want to search a specific range ("c2:c15") for any date starting with today and 60 days in the future and popup a msgbox. Below is what I have.
Private Sub Workbook_Open()
If Worksheets("Tests").Range("c2:c15").Value <= Date Then
MsgBox "One of the tests is past due for a review."
ElseIf Worksheets("Tests").Range("c2:c15").Value <= Date + 60 Then
MsgBox "One of the tests needs to be reviewed within the next 60 days."
End If
End Sub
When the workbook is open, I want to search a specific range ("c2:c15") for any date starting with today and 60 days in the future and popup a msgbox. Below is what I have.
Private Sub Workbook_Open()
If Worksheets("Tests").Range("c2:c15").Value <= Date Then
MsgBox "One of the tests is past due for a review."
ElseIf Worksheets("Tests").Range("c2:c15").Value <= Date + 60 Then
MsgBox "One of the tests needs to be reviewed within the next 60 days."
End If
End Sub