hello guys, I have a Worksheet_change code that is working perfectly well (see below). I would like to add another code, using the same functionality i.e. (Worksheet_change) so that all entries in column HA are automatically Uppercase.
How can I add a second code, right after the one below so all entries in column HA are systematically in Upper case?
Thanks guys in advance for your help with that. I am a beginner and I am still learning
cheers!!!
Mike
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo CleanExit:
If Not Intersect(Target, Range("G:G")) Is Nothing Then
Application.EnableEvents = False
If Target.Value = "PROMO" Then
Target.Offset(0, 202).Value = "Y"
Else
Target.Offset(0, 202).Value = ""
End If
Application.EnableEvents = True
End If
Exit Sub
CleanExit:
Application.EnableEvents = True
Err.Clear
End Sub
How can I add a second code, right after the one below so all entries in column HA are systematically in Upper case?
Thanks guys in advance for your help with that. I am a beginner and I am still learning
cheers!!!
Mike
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo CleanExit:
If Not Intersect(Target, Range("G:G")) Is Nothing Then
Application.EnableEvents = False
If Target.Value = "PROMO" Then
Target.Offset(0, 202).Value = "Y"
Else
Target.Offset(0, 202).Value = ""
End If
Application.EnableEvents = True
End If
Exit Sub
CleanExit:
Application.EnableEvents = True
Err.Clear
End Sub