Hi All
I have the following macro that applies conditional formatting to every F15:F21 range in every wrksheet, when the condition is Greater than 50% then the color should be Red. How can I add another condition for a different range like X2:X10
font white when value is less than 3.
Many Thanks
I have the following macro that applies conditional formatting to every F15:F21 range in every wrksheet, when the condition is Greater than 50% then the color should be Red. How can I add another condition for a different range like X2:X10
font white when value is less than 3.
Code:
Sub DILIPandey()
'applying conditional formatting on each sheet
For Each Sheet In ActiveWorkbook.Sheets
Sheet.Select
For Each cell In Range("f15:f21")
If cell > 0.5 Then
cell.Interior.Color = 255
End If
Next
Next
End Sub