ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   excel sheet all caps and needs to be only the first letter caps.. (https://www.excelbanter.com/excel-discussion-misc-queries/16435-excel-sheet-all-caps-needs-only-first-letter-caps.html)

kroberts

excel sheet all caps and needs to be only the first letter caps..
 
I have an excel shhet that is all caps and I would like to change only the
first letter to caps without retyping the whole sheet...is this possible?

Chip Pearson

There is no built in way to do this. You can use the following
macro to do this.

Sub AAA()
Dim Rng As Range
For Each Rng In ActiveSheet.UsedRange.SpecialCells( _
xlCellTypeConstants, xlTextValues)
Rng.Value = UCase(Left(Rng.Text, 1)) & Mid(Rng.Text, 2)
Next Rng
End Sub


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



"kroberts" wrote in message
...
I have an excel shhet that is all caps and I would like to
change only the
first letter to caps without retyping the whole sheet...is this
possible?





All times are GMT +1. The time now is 08:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com