T
TheMilkGuy
Hi folks,
I'm trying to force a couple of ranges into uppercase. These cells
are mirrors of input from other pages. I want the users to feel free
to use upper or lower case, but have the end result in upper.
Here is the formula I was using:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not (Application.Intersect(Target, Range("Z2:AI2,Z3,Z4")) Is
Nothing) Then
With Target
If Not .HasFormula Then
.Value = UCase(.Value)
End If
End With
End If
End Sub
But it doesn't work, I suppose since these cells are full of formulae
like "=InputI19" and whatnot.
I tried changing the script but all I did was flatten the formula-
holding cells into straight text and then made that text uppercase.
Suggestions appreciated.
Cheers,
Craig
I'm trying to force a couple of ranges into uppercase. These cells
are mirrors of input from other pages. I want the users to feel free
to use upper or lower case, but have the end result in upper.
Here is the formula I was using:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not (Application.Intersect(Target, Range("Z2:AI2,Z3,Z4")) Is
Nothing) Then
With Target
If Not .HasFormula Then
.Value = UCase(.Value)
End If
End With
End If
End Sub
But it doesn't work, I suppose since these cells are full of formulae
like "=InputI19" and whatnot.
I tried changing the script but all I did was flatten the formula-
holding cells into straight text and then made that text uppercase.
Suggestions appreciated.
Cheers,
Craig