Thread
:
Change a range to Uppercase
View Single Post
#
2
Posted to microsoft.public.excel.programming
Nigel[_2_]
external usenet poster
Posts: 735
Change a range to Uppercase
Sub test()
Dim c As Range, r As Range, i As Long
i = 100 ' set for my test only!
Set r = Range("A17:K" & i)
For Each c In r
c.Value = UCase(c.Value)
Next
End Sub
--
Regards,
Nigel
"Roger Converse" wrote in message
...
Hello,
How would I update a range of cells to all uppercase?
My range is:
r = Range("A17:K" & i)
How could I create a loop or something that would change all cells in that
range to uppercase?
Thank you,
Roger
Reply With Quote
Nigel[_2_]
View Public Profile
Find all posts by Nigel[_2_]