azizrasul
Well-known Member
- Joined
- Jul 7, 2003
- Messages
- 1,304
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
I have the following code: -
where the value in
is either 0, -9571840 or -16776961, representing black, green and red respectively obtained by recording a macro.
I don't get an error but font in the cells don't change colour?
Code:
For y = 2 To intRows
With Sheets("KPI 5 - WBT")
With .Range(.Cells(Sheets("KPI 5 - WBT").Cells(y, 6).Value, y), .Cells(110, y))
With .Font
.Color = Sheets("KPI 5 - WBT").Cells(y, 5).Value
.TintAndShade = 0
End With
End With
End With
Next y
where the value in
Code:
Sheets("KPI 5 - WBT").Cells(y, 5).Value
is either 0, -9571840 or -16776961, representing black, green and red respectively obtained by recording a macro.
I don't get an error but font in the cells don't change colour?