chelseasikoebs
Board Regular
- Joined
- Mar 9, 2009
- Messages
- 61
I have tried so many different codes, but I can't get them work! There will be multiple sheets in the workbook and new ones added along the way. On every sheet, it's cell E1 that is affected. I have the code below, but it doesn't work when I type "january" into cell E1. I'm wanting it to automatically change it to "JANUARY" as soon as I hit Enter. I'm using Excel 2010. Any help would be greatly appreciated!
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("e1:e1")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Target = UCase(Target)
Application.EnableEvents = True
End Sub