mykulpasskwa
Board Regular
- Joined
- Mar 20, 2018
- Messages
- 66
Hi, I have different ranges of cells where once a cell goes over a limit then that cell changes yellow. Once one cell changes yellow in the range I don't want the cells after to change yellow. The ColorIndex of every other cell is 24 if that's helpful. For example, in a range of F4:F7 if the limit is reached in F5 then that should change yellow (6) but F6 and F7 should stay blue (24). This is what I have so far:
VBA Code:
For Each oneCell In Range("F" & f & ":F" & X)
If oneCell.Interior.ColorIndex = 6 Then 'Do Nothing
Else: If counter >= giresult Then ws.Range("F" & X).Interior.ColorIndex = 6
End If
Next