Hi again,
Here's my loop:
The loop works perfectly, does everything it's supposed to, EXCEPT change the colour of the cell and text when it's supposed to.
Any ideas??
Thanks,
Paul.
Here's my loop:
Code:
Do Until Cells(rowno14, 13) = ""
If Cells(rowno14, 13).Value = "0.00" And Cells(rowno14, 14) = Cells(rowno14 + 1, 14) _
And Cells(rowno14, 5) = Cells(rowno14 + 1, 5) Then
Cells(rowno14, 13).Value = Zero
Cells(rowno14, 13).Select
Selection.Font.ColorIndex = 6
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
Else
If Cells(rowno14, 13).Value = "0" And Cells(rowno14, 5) <> Cells(rowno14 + 1, 5) _
And Cells(rowno14, 5) <> Cells(rowno14 - 1, 5) Then
Cells(rowno14, 13).Value = OneHundred
End If
End If
rowno14 = rowno14 + 1
Loop
The loop works perfectly, does everything it's supposed to, EXCEPT change the colour of the cell and text when it's supposed to.
Any ideas??
Thanks,
Paul.