I was wondering if using the code listed here, if it would be possible to shade an entire range of cells depending on what the status of column A was.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Num As Long
Dim rng As Range
Dim vRngInput As Variant
Set vRngInput = Intersect(Target, Range("A:L"))
If vRngInput Is Nothing Then Exit Sub
For Each rng In vRngInput
'Determine the color
Select Case rng.Value
Case Is <= " ": Num = 10 'green
Case "Closed": Num = 3 'black
Case "In Process": Num = 5 'blue
Case "Delivered": Num = 50 'magenta
Case "Pending Delivery": Num = 7 'magenta
Case "Pending Repair": Num = 46 'orange
Case Is > 20: Num = 3 'red
End Select
'Apply the color
rng.Font.ColorIndex = Num
Next rng
End Sub
I know there is the 'Cell.EntireRow.Interior.ColorIndex' command, but i cannot get it to change color of the whole range from A:L.
Anyone have any suggestions for this?