+ Reply to Thread
Results 1 to 12 of 12

Capitalizing an entire work sheet

  1. #1
    Registered User
    Join Date
    02-08-2008
    Posts
    6

    Capitalizing an entire work sheet

    I have made several work sheets with clients details on eg, name, address etc. In some of the cells text is all uppercase and in others lower.

    How do I create the entire work sheet into capitalization (first letter capital with the rest of text lower) without using PROPER function, where it puts the result in another cell.

    Any help would be greatful as I am taking forever to work this one out, I would of thought this would be a simple solution to achieve but Im finding it not.

    wideboards

  2. #2
    Forum Contributor
    Join Date
    04-16-2009
    Location
    Stellenbosch, South Africa
    MS-Off Ver
    Excel 2003; Excel 2007; Excel 2010; Excel 2013
    Posts
    136

    Re: Capitalizing an entire work sheet

    Perhaps:

    Please Login or Register  to view this content.
    Regards

    Jon (Excel 2003, 2007, 2010, 2013)

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Capitalizing an entire work sheet

    Possibly using Evaluate method ?
    Very basic example I'm afraid as I'm heading off for lunch...

    Please Login or Register  to view this content.
    EDIT - in essence the above is a reiteration of JvH's post...

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Capitalizing an entire work sheet

    Try this code. It will apply the PROPER worksheet function to the range you have selected.

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  5. #5
    Forum Contributor
    Join Date
    04-16-2009
    Location
    Stellenbosch, South Africa
    MS-Off Ver
    Excel 2003; Excel 2007; Excel 2010; Excel 2013
    Posts
    136

    Re: Capitalizing an entire work sheet

    Quote Originally Posted by DonkeyOte View Post
    Possibly using Evaluate method ?
    Very basic example I'm afraid as I'm heading off for lunch...

    Please Login or Register  to view this content.
    EDIT - in essence the above is a reiteration of JvH's post...
    But without the loop. Very clever Luke!

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Capitalizing an entire work sheet

    I can't take credit for that - I picked it up from Pedro (c/o Bill Jelen's book)... moreover my quick demo makes assumptions of there being no formulae etc... to limit processing as much as possible (and so as to avoid overriding formulae) perhaps:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-16-2009
    Location
    Stellenbosch, South Africa
    MS-Off Ver
    Excel 2003; Excel 2007; Excel 2010; Excel 2013
    Posts
    136

    Re: Capitalizing an entire work sheet

    The use of SpecialCells(xlCellTypeConstants, xlTextValues) is imperative because:

    1. it reduces the size of the range to loop through (which can be avoided using Lukes method)

    and

    2. because without it, it will convert formula to constants.
    Last edited by JONvdHeyden; 06-24-2009 at 08:28 AM.

  8. #8
    Registered User
    Join Date
    02-08-2008
    Posts
    6

    Re: Capitalizing an entire work sheet

    Where would I put this code and how? I am very new to this or I have just simply forgot.
    Simple instructions please.

  9. #9
    Registered User
    Join Date
    02-08-2008
    Posts
    6

    Re: Capitalizing an entire work sheet

    Thank you, Ive successfully done it.

+ 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