All, the code below says if anything in the range is Low, Medium or High (referring to risk) then colour the cell appropriately.
What I'd like to do is say if B1 says High then make the cell D2 red, or if B2 says medium make D2 amber or if B11 says Low then make D11 green.
Any ideas?
What I'd like to do is say if B1 says High then make the cell D2 red, or if B2 says medium make D2 amber or if B11 says Low then make D11 green.
Any ideas?
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
' Multiple Conditional Format
Dim rng As Range
' Only look at single cell changes
If Target.Count > 1 Then Exit Sub
Set rng = Range("I3:I11")
' Only look at that range
If Intersect(Target, rng) Is Nothing Then Exit Sub
If Target <> "LOW" Or Target <> "MEDIUM" Or Target <> "HIGH" Then _
Target.Interior.ColorIndex = 0
If Target = "Low" Then Target.Interior.Color = vbGreen 'Green
If Target = "Medium" Then Target.Interior.Color = vbBlue 'Blue
If Target = "High" Then Target.Interior.Color = vbRed 'Red
End Sub