Change colour of cells depending on entry in one cell
One way:
Change:
If Not nColor = -1 Then _
rCell.Offset(0, -5).Interior.Color = nColor
To
If Not nColor = -1 Then
rCell.Offset(0, -5).Interior.Color = nColor
Else
rCell.Offset(0, -5).Interior.ColorIndex = _
xlColorIndexNone
End If
In article ,
harwookf wrote:
I have changed the offset, so it now works, but can it be modified so that if
the numbers are anything other than 0, 30, 60, 90 or 100, it will default to
the standard no fill?
|