I'm not seeing that behavior on my XL2000 instance, but if you want to, you
can modify Chip's code by changing this line
If Rng.HasFormula = False Then
to
If Not Rng.HasFormula And Not IsDate(rng) Then
"Andy Tallent" wrote:
I'm using some code from Chip Pearsons site to convert a range to Upper Case.
Sub ConvertToUpperCase()
Dim Rng As Range
For Each Rng In Selection.Cells
If Rng.HasFormula = False Then
Rng.Value = UCase(Rng.Value)
End If
Next Rng
End Sub
I've noticed that whenever there is a date in the range it "flips" the
format. Thus 01/02/2004 is converted to 02/01/2004. Is there a way around
this?
Many Thanks
Andy
--
Andy Tallent
|