lowercase to caps

C

Chip Pearson

There are (at least) two ways to do this. One way is with a
formula. In a empty column next to your data, enter the formula
=UPPER(A1) and copy down as far as you need to go. Then, copy
this range, and do a Paste Special Values over the original data
and delete the column containing the formulas. The second way is
to use a VBA macro.

Sub ToUpper()
Dim Rng As Range
On Error Resume Next
For Each Rng In Range("A1:A100").SpecialCells( _
xlCellTypeConstants, xlTextValues)
Rng.Value = UCase(Rng.Text)
Next Rng
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top