Hi,
I have several cells in a worksheet that I would like to have automatically change to uppercase once information is entered in the cells.
I've tried the below, but it isn't working for me:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B4,G3,F7:H15,F23,C27,E27,F46:G50,G74:I79,C91,E95")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Target.Value = UCase(Target.Value)
Application.EnableEvents = True
End Sub
I'd be grateful for any other suggestions as to code I could try.
Thanks,
I have several cells in a worksheet that I would like to have automatically change to uppercase once information is entered in the cells.
I've tried the below, but it isn't working for me:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B4,G3,F7:H15,F23,C27,E27,F46:G50,G74:I79,C91,E95")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Target.Value = UCase(Target.Value)
Application.EnableEvents = True
End Sub
I'd be grateful for any other suggestions as to code I could try.
Thanks,