Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have two worksheets that I need to automatically change the case to Upper
regardless of how it was typed in the first place. In one worksheet, the range is Column C and in the second worksheet, the range is Column B. From looking at various entries from other people, I have a code (see below) to use which works on one sheet, but not on the other. I'm not sure if it is because I already have a code to change the colour of cells depending on their criteria. Please help. Private Sub Worksheet_Change(ByVal Target As Range) Const WS_RANGE As String = "B:B" '<== change to suit On Error GoTo ws_exit Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target If Not .HasFormula Then .Value = UCase(.Value) End If End With End If ws_exit: Application.EnableEvents = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to change mixed case to upper case in Excel for all cells | Excel Discussion (Misc queries) | |||
Change the text from lower case to upper case in an Excel work boo | Excel Discussion (Misc queries) | |||
automatically change text case on entry | Excel Discussion (Misc queries) | |||
How do I change a column in Excel from upper case to lower case? | Excel Worksheet Functions | |||
change typed text to upper case | Excel Discussion (Misc queries) |