I am using the below code and finding that I get a mismatch type error everytime I try to update the sheet with multiple entries - would there be any reason for this? I also have the following queries.
When using this kind of code can I drag cells???
Can i include some code to update font color. and cell patterns?? Thanks
Thanks
When using this kind of code can I drag cells???
Can i include some code to update font color. and cell patterns?? Thanks
Thanks
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim iColor As Long
Select Case Target.Value
Case "X03", "X04", "X09", "L35", "X37", "X45", "X70"
iColor = 3
Case "121", "MTG"
iColor = 15
Case "LUN", "BRK"
iColor = 7
Case "UPD"
iColor = 8
Case "XFP", "ESD", "PFX", "EVC", "MBX"
iColor = 17
Case "TRN", "CHG"
iColor = 12
Case "PHN"
iColor = 8
End Select
Target.Interior.ColorIndex = iColor
End Sub
Last edited: