Dear Friends,
Could you please guide me with the below conditional formatting , i need 3 conditions
Below 78% Red with White Fonts
Above 78% and Below 83% Yellow with Black Fonts
Above 83% Green with Black Fonts , how can i get the 2 condition, please help
Set rg = Range("R7", Range("R7").End(xlDown))
'clear any existing conditional formatting
rg.FormatConditions.Delete
Set cond1 = rg.FormatConditions.Add(xlCellValue, xlLess, "=78%")
With cond1
.Interior.Color = vbRed
.Font.Color = vbWhite
End With
Set cond2 = rg.FormatConditions.Add(xlCellValue, xlGreater, "=83%")
With cond2
.Interior.Color = vbGreen
.Font.Color = vbBlack
End With
Set cond3 = rg.FormatConditions.Add(xlCellValue, xlLess, "=83%")
With cond3
.Interior.Color = vbGreen
.Font.Color = vbBlack
End With
Could you please guide me with the below conditional formatting , i need 3 conditions
Below 78% Red with White Fonts
Above 78% and Below 83% Yellow with Black Fonts
Above 83% Green with Black Fonts , how can i get the 2 condition, please help
Set rg = Range("R7", Range("R7").End(xlDown))
'clear any existing conditional formatting
rg.FormatConditions.Delete
Set cond1 = rg.FormatConditions.Add(xlCellValue, xlLess, "=78%")
With cond1
.Interior.Color = vbRed
.Font.Color = vbWhite
End With
Set cond2 = rg.FormatConditions.Add(xlCellValue, xlGreater, "=83%")
With cond2
.Interior.Color = vbGreen
.Font.Color = vbBlack
End With
Set cond3 = rg.FormatConditions.Add(xlCellValue, xlLess, "=83%")
With cond3
.Interior.Color = vbGreen
.Font.Color = vbBlack
End With