Thank you for your reply. It looks like there is no way to get around
looping through the range of text to convert it to Ucase. I ended up doing
the looping on the range thing, it was pretty slow. I was hoping I could do
something like
Sheet1.UsedRange.Text = Ucase(Sheet1.UsedRange.Text)
But that did not work out. The idea was like you can select a range of
cells and hit ctrl-B to bold everything in one shot. That it was I was
hoping to achieve with Ucase. Like create a macro that I could call with
ctrl something but without looping.
"JE McGimpsey" wrote:
> See
>
> http://www.mvps.org/dmcritchie/excel/proper.htm#upper
>
> In article <5D2474F5-08C1-4A1F-8F8C-(E-Mail Removed)>,
> Rich <(E-Mail Removed)> wrote:
>
> > Hello,
> >
> > Is there a command to convert all text in a sheet to UpperCase in one shot?
> > Or do I have to loop?
> >
> > Dim rng As Range, i As Integer, j As Integer
> > set rng = Sheet1.UsedRange
> > For i = 1 to rng.Rows.Count
> > For j = 1 to rng.Columns.count
> > rng(i,j) = ConvertToUpperCase(rng(i,j) '-- a udf, pseudo code whatever
> > Next
> > Next
> >
> > Thanks,
> > Rich
>