bamaisgreat
Well-known Member
- Joined
- Jan 23, 2012
- Messages
- 831
- Office Version
- 365
- Platform
- Windows
I was wandering if the code below could be changed in a way where if the target had G4496-9809 it would still highlight.
Also if it could highlight the entire row instead of just the one cell. Thanks Jamey
Also if it could highlight the entire row instead of just the one cell. Thanks Jamey
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Value = "[COLOR=#FF0000]G4496" T[/COLOR]hen Target.Interior.ColorIndex = 3
If Target.Value = "G4222" Then Target.Interior.ColorIndex = 4
If Target.Value = "G4276" Then Target.Interior.ColorIndex = 6
End Sub