R
Rick
I had the below macro to change text into Uppercase in Excel 2003 but now in
2007 it doesn't work.
It seems to get stuck on the For Each x.
Can anyone tell me why?
Thanks
Rick
Sub Uppercase()
' Loop to cycle through each cell in the specified range.
For Each x In Range(Selection, Selection.End(xlDown))
' Change the text in the range to uppercase letters.
x.Value = UCase(x.Value)
Next
End Sub
2007 it doesn't work.
It seems to get stuck on the For Each x.
Can anyone tell me why?
Thanks
Rick
Sub Uppercase()
' Loop to cycle through each cell in the specified range.
For Each x In Range(Selection, Selection.End(xlDown))
' Change the text in the range to uppercase letters.
x.Value = UCase(x.Value)
Next
End Sub