How do I capitalize the first letter of multiple cells?

G

Guest

I'm trying to clean a mailing list (1000+ rows), but the capitalization of
the cells containing name, salutation etcetera is variable. How can I ensure
that the contents of all cells start with a capital letter?
 
O

Otto Moehrbach

Let's say that your names are in Column A starting with A2.
Find a blank column to the right of all your data, say Column H.
In H2, type "=Proper(A2)" without the quotes.
Drag that formula down as far as the names in Column A go.
Click Edit - Copy.
Select A2.
Click Edit - Paste Special - Values.
Click OK.
Delete Column H.
Done.
HTH Otto
 
G

Guest

Otto - that is superb - you've just saved me about 2 days of work! Not a
function I've come across, but very easy to apply.

- Dominic
 
G

Guest

Sub Change_Case()
Dim ocell As Range
Dim Ans As String
Ans = Application.InputBox("Type in Letter" & vbCr & _
"(L)owercase, (U)ppercase, (S)entence, (T)itles ")
If Ans = "" Then Exit Sub
For Each ocell In Selection.SpecialCells(xlCellTypeConstants, 2)
Select Case UCase(Ans)
Case "L": ocell = LCase(ocell.Text)
Case "U": ocell = UCase(ocell.Text)
Case "S": ocell = UCase(Left(ocell.Text, 1)) & _
LCase(Right(ocell.Text, Len(ocell.Text) - 1))
Case "T": ocell = Application.WorksheetFunction.Proper(ocell.Text)
End Select
Next

End Sub
 
A

Adam Birken

Otto,

You ROCK!!!!!!!!!!!!!!!!!

Otto Moehrbach said:
Let's say that your names are in Column A starting with A2.
Find a blank column to the right of all your data, say Column H.
In H2, type "=Proper(A2)" without the quotes.
Drag that formula down as far as the names in Column A go.
Click Edit - Copy.
Select A2.
Click Edit - Paste Special - Values.
Click OK.
Delete Column H.
Done.
HTH Otto
 

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