Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

How do I import names properly capitalized

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Botteon - 07 Apr 2007 06:12 GMT
I'm downloading names in a .cvs file, and many don't have the first letter
capitalized, or the whole name is capitalized. This file then gets imported
into an autoresponder and shoots out emails, but the names go out as
downloaded. How can I get them properly capitalized before importing into
autoresponder. There are so many I can't manually correct.

Alan Botteon
Coastal WealthBuilders
Level 3 Director
albotteon@wademontravel.com
www.wademontravel.com
800-891-8329
Anne Troy - 07 Apr 2007 06:44 GMT
Try this:
http://www.cpearson.com/excel/case.htm
You want the third option, "vbProperCase"
Or you can insert a column and use a formula like this:
=Proper(B2)
and copy down. :)
****************************
Hope it helps!
Anne Troy
www.OfficeArticles.com
****************************
> I'm downloading names in a .cvs file, and many don't have the first letter
> capitalized, or the whole name is capitalized. This file then gets
[quoted text clipped - 8 lines]
> www.wademontravel.com
> 800-891-8329
Botteon - 07 Apr 2007 15:10 GMT
I so appreciate your response. As I built computers I've always been so
grateful to responders on newsgroups, where I always went when problems
exceeded my grasp. I've been away from programming dabbling and working with
Excel formulas, so that I wasn't able to do anything with your answers.
Dumbly, I guess I took your second idea and put it in the excel formula bar
for column one which is first names, and naturally, it just named everyone
=Proper(B2).  I wouldn't know where to put the code in your first idea. Hate
to bother you, and I can pick it up quick, but i'm dumbfounded at the
moment.

> Try this:
> http://www.cpearson.com/excel/case.htm
[quoted text clipped - 12 lines]
>> out as downloaded. How can I get them properly capitalized before
>> importing into autoresponder. There are so many I can't manually correct.
Gord Dibben - 07 Apr 2007 17:21 GMT
Sub optProper_Click()
'David McRitchie, programming, 2003-03-07
Dim rng1 As Range, rng2 As Range, bigrange As Range
Dim cell As Range
   Application.ScreenUpdating = False
   Application.Calculation = xlCalculationManual
   On Error Resume Next
   Set rng1 = Intersect(Selection, _
           Selection.SpecialCells(xlCellTypeConstants))
   Set rng2 = Intersect(Selection, _
           Selection.SpecialCells(xlCellTypeFormulas))
   On Error GoTo 0
   If rng1 Is Nothing Then
       Set bigrange = rng2
   ElseIf rng2 Is Nothing Then
       Set bigrange = rng1
   Else
       Set bigrange = Union(rng1, rng2)
   End If
   If bigrange Is Nothing Then
       MsgBox "All cells in range are EMPTY"
       GoTo done
   End If
   For Each cell In bigrange
       cell.Formula = Application.Proper(cell.Formula)
   Next cell
done:
   Application.Calculation = xlCalculationAutomatic
   Application.ScreenUpdating = True
End Sub

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + r to open Project Explorer.

Find your workbook/project and select it.

Right-click and Insert>Module.  Paste the code in there.  Save the
workbook and hit ALT + Q to return to your workbook.

Run or edit the macro by going to Tool>Macro>Macros.

You can also assign this macro to a button or a shortcut key combo.

Gord Dibben  MS Excel MVP

>I so appreciate your response. As I built computers I've always been so
>grateful to responders on newsgroups, where I always went when problems
[quoted text clipped - 22 lines]
>>> out as downloaded. How can I get them properly capitalized before
>>> importing into autoresponder. There are so many I can't manually correct.
Botteon - 07 Apr 2007 17:32 GMT
Thanks so much, works so great I'm not even going to try and figure it out!
Appreciation to you and all who respond. Thanks

> Sub optProper_Click()
> 'David McRitchie, programming, 2003-03-07
[quoted text clipped - 83 lines]
>>>> importing into autoresponder. There are so many I can't manually
>>>> correct.
Botteon - 08 Apr 2007 04:24 GMT
Could you post the code for all small letters to format an email column,
thanks

> Thanks so much, works so great I'm not even going to try and figure it
> out! Appreciation to you and all who respond. Thanks
[quoted text clipped - 88 lines]
>>>>> importing into autoresponder. There are so many I can't manually
>>>>> correct.
Dave Peterson - 08 Apr 2007 13:03 GMT
Try changing one line:

From:
cell.Formula = Application.Proper(cell.Formula)

To:
cell.Formula = lcase(cell.Formula)

to make them uppercase:
cell.Formula = ucase(cell.Formula)

> Could you post the code for all small letters to format an email column,
> thanks
[quoted text clipped - 91 lines]
> >>>>> importing into autoresponder. There are so many I can't manually
> >>>>> correct.

Signature

Dave Peterson

Botteon - 08 Apr 2007 23:39 GMT
Thanks so much. And in the meanwhile, I've also been advised of the 2
following macros:
Sub ConvertToLowerCase()
Dim Rng As Range
For Each Rng In Selection.Cells
   If Rng.HasFormula = False Then
       Rng.Value = LCase(Rng.Value)
   End If
Next Rng
End Sub

Sub ConvertToProperCase()
Dim Rng As Range
For Each Rng In Selection.Cells
   If Rng.HasFormula = False Then
       Rng.Value = StrConv(Rng.Value, vbProperCase)

   End If
Next Rng
End Sub

Thanks to all.

> Try changing one line:
>
[quoted text clipped - 111 lines]
>> >>>>> importing into autoresponder. There are so many I can't manually
>> >>>>> correct.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.