ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,226
- Office Version
- 2007
- Platform
- Windows
Hi,
I am using the code below which works fine.
It currently changes the text to Upper Case for the range A1:A38
On the same worksheet i also want to use the same code for S4:S38
What i DONT want to do is just change the existing to A1:S38
So Please advise how i apply the code so its like A1:A38 & also S4:S38
Thanks
I am using the code below which works fine.
It currently changes the text to Upper Case for the range A1:A38
On the same worksheet i also want to use the same code for S4:S38
What i DONT want to do is just change the existing to A1:S38
So Please advise how i apply the code so its like A1:A38 & also S4:S38
Thanks
Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Or Target.HasFormula Then Exit Sub
On Error Resume Next
If Not Intersect(Target, Range("A1:A38")) Is Nothing Then
Application.EnableEvents = False
Target = UCase(Target)
Application.EnableEvents = True
End If
On Error GoTo 0
End Sub