This will clear previous CF formulas and add the new one.
Sub MyFormat()
Dim rngMyRange As Range
Set rngMyRange = Range("A5", Cells(Cells(Rows.Count, 2).End(xlUp).Row, Cells(4, Columns.Count).End(xlToLeft).Column)) 'Set your range here
rngMyRange.Select
rngMyRange.FormatConditions.Delete
With rngMyRange
.FormatConditions.Add Type:=xlExpression, Formula1:="=AND(COUNTA($A$5:$A5)/2=INT(COUNTA($A$5:$A5)/2), $B5<>"""")"
With .FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.ColorIndex = 15
End With
End With
End Sub
Bookmarks