Private Sub Worksheet_Change(ByVal Target As Range)
Dim cel As Range
For Each cel In Target
If Not Intersect(cel, Range("K:K,M:M")) Is Nothing Then
Select Case Range("M" & cel.Row).Value
Case "Stanlow"
If Range("K" & cel.Row).Value > 10 Then
Range("K" & cel.Row).Interior.ColorIndex = 8
Else
Range("K" & cel.Row).Interior.ColorIndex = xlColorIndexNone
End If
Case "Grangemouth"
If Range("K" & cel.Row).Value < 50 Then
Range("K" & cel.Row).Interior.ColorIndex = 6
Else
Range("K" & cel.Row).Interior.ColorIndex = xlColorIndexNone
End If
End Select
End If
Next cel
End Sub
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.