HI All,
I want to do the following things with the help of conditional formatting.
1) if cell is blank - no colour
2) if cell value is greater than 5% cell should be blue
3) if cell value is less than -5% cell should be blue
I am using below code however I am not getting the results , could you please help.
Sub SpecCheckred()
Sheets("Summary").Select
Dim iRow As Range
Set iRow = Range("b4:BH50000")
For Each cell In iRow
If cell.Value <> "" And cell.Value > 0.05 And cell.Value < -0.05 Then
cell.Interior.Color = RGB(22, 255, 255)
End If
Next
End Sub
Thanks
Chan
I want to do the following things with the help of conditional formatting.
1) if cell is blank - no colour
2) if cell value is greater than 5% cell should be blue
3) if cell value is less than -5% cell should be blue
I am using below code however I am not getting the results , could you please help.
Sub SpecCheckred()
Sheets("Summary").Select
Dim iRow As Range
Set iRow = Range("b4:BH50000")
For Each cell In iRow
If cell.Value <> "" And cell.Value > 0.05 And cell.Value < -0.05 Then
cell.Interior.Color = RGB(22, 255, 255)
End If
Next
End Sub
Thanks
Chan