ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,737
- Office Version
- 2007
- Platform
- Windows
Afternoon,
I have the code in use supplied below.
You will see that the current range is G13:O17 but how would i then edit the code to include the range G27:O42
I have the code in use supplied below.
You will see that the current range is G13:O17 but how would i then edit the code to include the range G27:O42
Code:
Private Sub Worksheet_Change(ByVal Target As Range)Dim C As Range, d As Range
Set d = Intersect(Target, Range("G13:O17"))
If d Is Nothing Then Exit Sub
Application.EnableEvents = False
For Each C In d
If C.Column <> 14 Then
If Not C.HasFormula Then C = UCase(C)
End If
Next
Application.EnableEvents = True
End Sub