Hi All,
I am using the below VBA Code to force a range of cells to upper case, it works in all but one of my worksheets, anyone have any ideas.
I have also attached an example of the sheet.
I am using the below VBA Code to force a range of cells to upper case, it works in all but one of my worksheets, anyone have any ideas.
I have also attached an example of the sheet.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
''''''''''''''''''''''''''''''''''''''''''''
'Forces text to UPPER case for the range M6:S68
''''''''''''''''''''''''''''''''''''''''''''
If Target.Cells.Count > 1 Or Target.HasFormula Then Exit Sub
On Error Resume Next
If Not Intersect(Target, Range("M6:S68")) Is Nothing Then
Application.EnableEvents = False
Target = UCase(Target)
Application.EnableEvents = True
End If
On Error GoTo 0
End Sub