Sub
Farbändern()
Dim
cell
As
Range
For
Each
cell
In
Range(
"E1:E500"
)
If
cell.Value = Format(
"01.01.YYYY"
)
Then
cell.Interior.Color = XlRgbColor.rgbLightGrey
ElseIf
cell.Value = Format(
Date
,
"01.02.YYYY"
)
Then
cell.Interior.Color = XlRgbColor.rgbBlue
ElseIf
cell.Value = Format(
Date
,
"01.03.YYYY"
)
Then
cell.Interior.Color = XlRgbColor.rgbLightGrey
End
If
Next
cell
End
Sub