Hi folks
I use the following code to change the text on a sheet to uppercase but would like to refine it so that only selected columns are changed.
I've tried altering the Target.column to something like ="C:F" but without success, any ideas please?
Kind regards
DezB
Code
Private Sub Worksheet_Change(ByVal Target As Range)
'````````````````````````````````````````````````````'
'code to change lowercase to uppercase'
If Target.column > 17 Then Exit Sub
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = UCase(Target.Formula)
ErrHandler:
Application.EnableEvents = True
Dim sReason As String
If Target.Cells.Count > 1 Then Exit Sub
Application.ScreenUpdating = False
End Sub
Display More