+ Reply to Thread
Results 1 to 6 of 6

Making first letter of each word capital

  1. #1
    Registered User
    Join Date
    02-06-2007
    Posts
    4

    Making first letter of each word capital

    I'm not sure if this is difficult, easy or impossible but I'm dealing with a worksheet that is in all caps and I need to make only the first letter of each word capitalized while the rest being lowercase. Please direct me to the right place if this question was already answered!

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    03-23-2006
    Location
    Vancouver
    Posts
    114

    =proper

    If cell A1 =

    THIS IS THE MAIDEN ALL FORLORN THAT MILKED THE COW WITH THE CRUMPLED HORN

    In cell A2 enter = PROPER(A1)

    Result:

    This Is The Maiden All Forlorn That Milked The Cow With The Crumpled Horn

  3. #3
    Registered User
    Join Date
    02-06-2007
    Posts
    4

    Last question

    Quick thing, Now I understand how to make the first letter in each word capital, how do I repeat it many times, for instance I have A1-A170 that need to be formatted to the first letter capital situation mentioned above. How would I just replicated that result quickly?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Either drag the formula down and then paste special values or use some VBA code (See link).

    http://www.ozgrid.com/VBA/change-case-text.htm


    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Registered User
    Join Date
    02-06-2007
    Posts
    4
    Sorry, I'm new at this, I'm not sure I understand the vbProperCase command, where do I put that? Just really quick instruction on how to do this would be so helpful. thanks.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This link should help

    Need to add to a module

    http://www.mcgimpsey.com/excel/modules.html

    Basically

    Press alt + F11
    Then Insert > module
    and paste the code in
    Press alt + F8 to run

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1