ErinJ
New Member
- Joined
- May 27, 2011
- Messages
- 26
I need each cell in Range E18:BL18 to change color based on the letter in the cell. This is what I was thinking but it's not working:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Select Case Range("E18:BL18").Value
Case Is = "M"
Cell.Interior.Color = vbBlue
Case Is = "C"
Cell.Interior.Color = vbRed
Case Else
Cell.Interior.Color = vbWhite
End Select
End Sub
Please help
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Select Case Range("E18:BL18").Value
Case Is = "M"
Cell.Interior.Color = vbBlue
Case Is = "C"
Cell.Interior.Color = vbRed
Case Else
Cell.Interior.Color = vbWhite
End Select
End Sub
Please help