TheCastillian
New Member
- Joined
- May 18, 2016
- Messages
- 2
Hi all,
I could use a hand with this one.
I have tested this on a single cell and it works great, however, I want to apply this to an entire sheet. ie Range(A1:BP65). With that said, A1 on the code is set as Today() and the intent is to run the code to determine what cells are passed due. I want to identify if any of the cells in the range are passed due and are not green (46).
Sub CellColor()
'This formula will change the color of cell that is passed due and not complete
'Color 43 is the green color that is used to signify that a job is complete
'Color 6 is yellow and will signify that a task is late
If Range("A2") < Range("A1") Then
If Range("A2").Interior.ColorIndex <> 43 Then
Range("A2").Interior.ColorIndex = 6
End If
End If
End Sub
Thanks in advance...
I could use a hand with this one.
I have tested this on a single cell and it works great, however, I want to apply this to an entire sheet. ie Range(A1:BP65). With that said, A1 on the code is set as Today() and the intent is to run the code to determine what cells are passed due. I want to identify if any of the cells in the range are passed due and are not green (46).
Sub CellColor()
'This formula will change the color of cell that is passed due and not complete
'Color 43 is the green color that is used to signify that a job is complete
'Color 6 is yellow and will signify that a task is late
If Range("A2") < Range("A1") Then
If Range("A2").Interior.ColorIndex <> 43 Then
Range("A2").Interior.ColorIndex = 6
End If
End If
End Sub
Thanks in advance...