macro using PROPER function

  • Thread starter Thread starter CLew
  • Start date Start date
C

CLew

Dear all,

I have a Excel sheet with 13,000 names and address that are all i
upper case. Is there way to automate the Proper function so that th
cases are corrected? That is, the first character of the first an
last names is in upper case and rest in lower case. I'm rather new t
using macros in Excel.

Thanks in advance!
-Chri
 
This sounds like a one time job.
Do not use a macro.
Assuming Names and Addresses are in columns A & B
Insert two columns at C
In the new C =Proper(A1)
In the new D =Proper(B1)
Select C1:D1, Copy Down.
Select C:D, Copy, Paste Special Values.
Inspect and edit.
Delete Columns A:B

Stephen Rasey
Houston
http://wiserways.com
http://excelsig.org
 
Chris,

Here is some simple code

Dim cell As Range

For Each cell In Selection
cell.Value = WorksheetFunction.Proper(cell.Value)
Next cell

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Thanks to all of you for the suggestions. I followed Stephen's advic
regarding pasting special values into new columns since it seemed th
easiest. But I'll definately keep all of it on record for the nex
time I get set of lists from the distributor!

All the best,
Chri
 

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

Back
Top