Dim RBD As String, Red As Integer, Green As Integer
For i = 3 To 500
Sheets("Jan_14").Select
Range("H" & i).Activate
Range("K" & i).Activate
Range("H" & i).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=AND(H<K,K<>"" "")"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Font
.Bold = True
.Italic = False
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 5287936
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = False
Range("H" & i).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=AND(H>K,K<>"" "")"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Font
.Bold = True
.Italic = False
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 255
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = False
Next i
End Sub