Make excel document that is in all CAPS "Proper" (Lowercase)

Hello,

I have an excel spreadsheet and all of the data on the sheet is in capital letters. Is it possible to convert all of the text to "proper" formatting? E.g. DOG would be Dog.

Thank you!
grindmygearsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

byundtMechanical EngineerCommented:
Here is a macro that will convert text constants in a user-selected range into Proper case (each word starts with leading capital letter, balance of word lower case). Cells containing a formula, numbers or error values will be unaffected.

Install the macro in a regular module sheet. To use the macro, first select the cells to be converted, then launch the macro with ALT + F8 macro selector.
Sub ProperText()
'Converts text into Proper case
'Select the range to be converted before running the macro
Dim cel As Range, rg As Range
Application.ScreenUpdating = False
On Error Resume Next
Set rg = Selection.SpecialCells(xlCellTypeConstants, xlTextValues)
On Error GoTo 0
If Not rg Is Nothing Then
    For Each cel In rg.Cells
        cel.Value = Application.Proper(cel.Value)
    Next
End If
End Sub

Open in new window

0
Martin LissOlder than dirtCommented:
Or you can use this simpler macro.


Sub MakeProper()

Dim c As Range

For Each c In ActiveSheet.UsedRange.Cells
    c.Value = Application.Proper(c.Value)
Next

End Sub

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
I'm glad I was able to help.

Marty - MVP 2009 to 2013
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.