Getting "runtime error 28 out of stack space" when running below code.
And only the C10 gets Upper Cased, while the rest of pasted sells remains lower cased.
Trying to get entire pasted range Upper Cased.
And only the C10 gets Upper Cased, while the rest of pasted sells remains lower cased.
Trying to get entire pasted range Upper Cased.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("c10")) Is Nothing And Range("c10").Value <> "" Then
Call UPCaseSelection
End If
End Sub
Sub UPCaseSelection()
Dim rng As Range
Set rng = Selection
For Each cell In rng
cell.Value = UCase(cell)
Next cell
End Sub