Greetings,
Following macro is almost okey.
Sub Macro1()
Dim c As Range
For Each c In Sheets("Sheet1").UsedRange
If Date < c.Value Then
c.Interior.Color = 65535
MsgBox Prompt:="5 days left.", Buttons:=vbInformation, Title:="Hello"
End If
Next c
End Sub
I need something like this;
Sub Macro1()
Dim c As Range
For Each c In Sheets("Sheet1").UsedRange
If Date < c.Value - 5 Then
c.Interior.Color = 65535
MsgBox Prompt:="5 days left.", Buttons:=vbInformation, Title:="Hello"
End If
Next c
End Sub
Check enclosed file.
Bookmarks