Results 1 to 5 of 5
  1. #1
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Convert Upper Case to Title Case (Word XP)

    Hi all,

    Has anyone got a method of quickly converting all Upper Case text in a long document to Title Case? I have 40 large documents that contain upper case text scattered throughout the doc. This must change to title case!!!

    I tried styles (which is a method I learned from the lounge), but I cannot get this right! I would prefer VBA code if it were possible to...select all text in upper case and convert it into title case!

    TIA
    Regards,
    Rudi

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Convert Upper Case to Title Case (Word XP)

    Try this:

    Sub Upper2Title()
    Dim wd As Range
    Application.ScreenUpdating = False
    For Each wd In ActiveDocument.Words
    If wd.Case = wdUpperCase Then
    wd.Case = wdTitleWord
    End If
    Next wd
    Application.ScreenUpdating = True
    End Sub

    It'll be slow on large documents!

  3. #3
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Convert Upper Case to Title Case (Word XP)

    Wow thanx for the fast reply! It is working well on a test doc! I'll try it on the real deal tonight!
    Cheers
    Regards,
    Rudi

  4. #4
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Convert Upper Case to Title Case (Word XP)

    When I have wanted to perform this type of request in the past it was always only required on Heading Style paragraphs. If that is the case for you then the following may be of interest.

    The Outline view gives a quick (non-macro) way to do this by selecting only the Headings (viewed to a particular level) and then using the Change Case menu option.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  5. #5
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Convert Upper Case to Title Case (Word XP)

    You are correct. Though the macro is needed, (as the Uppercase info is scattered over various areas and levels), Ihave only recently come across the fact that you can use this technique to simplify heading level based modifications! For example, I have relied on showing level 2 styles and copying the details for that level into a new document for linking into my DB.
    Its a good technique to be aware of!
    Cheers
    Regards,
    Rudi

Posting Permissions

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