
Ta very much!



Code: Select all
Private Sub CommandButton1_Click()
If Range("T8").Value > 365 Then
With Range("S8").Font
.Color = -16776961
.Bold = True
End With
Else
With Range("S8").Font
.ColorIndex = xlAutomatic
.Bold = False
End With
End If
If Range("T9").Value > 365 Then
With Range("S9").Font
.Color = -16776961
.Bold = True
End With
Else
With Range("S9").Font
.ColorIndex = xlAutomatic
.Bold = False
End With
End If
If Range("T10").Value > 365 Then
With Range("S10").Font
.Color = -16776961
.Bold = True
End With
Else
With Range("S10").Font
.ColorIndex = xlAutomatic
.Bold = False
End With
End If
End Sub
