Hi All
I'm looking at doing a very simple traffic light system for colour coding dates at the end of a very long macro
Something like the below, I know this doesn't work but i have never attempted this type of thing before.
Any help would be appreciated. the dates are formatted dd/mm/yyyy
cheers
Paul
I'm looking at doing a very simple traffic light system for colour coding dates at the end of a very long macro
Something like the below, I know this doesn't work but i have never attempted this type of thing before.
Any help would be appreciated. the dates are formatted dd/mm/yyyy
cheers
Paul
VBA Code:
'>>>> colour dates
Dim MyDate
MyDate = Date
With Worksheets("Import").Range("C2:C" & LastRow)
If Value < MyDate Then
Interior.Color = RGB(255, 0, 0)
Font.Color = RGB(255, 255, 255)
Else
If Value = MyDate Then
Interior.Color = RGB(255, 255, 0)
Else
If Value > MyDate Then
Interior.Color = RGB(0, 255, 0)
End If
End With