+ Reply to Thread
Results 1 to 4 of 4

Easiest way to CAPITALIZE entire worksheet ?

  1. #1
    Nugget
    Guest

    Easiest way to CAPITALIZE entire worksheet ?

    When I select text, the FORMAT menu & EFFECTS block does not provide an
    uppercase option.

    Any help will be greatly appreciated.

    Lar


  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363
    Hi

    This code should capitalize everything

    Sub capitalize_cell()

    Dim Cell As Range
    Dim R As Range
    Set R = ActiveSheet.UsedRange
    'SearchChar = "#"
    For Each Cell In R
    valeur = Cell.Value
    valeur = UCase(valeur)
    Cell = valeur

    Next
    End Sub

  3. #3
    Jim Cone
    Guest

    Re: Easiest way to CAPITALIZE entire worksheet ?

    The free Excel add-in "Excel Extras" will do that.
    It adds options for upper, lower, sentence and proper case to the Format menu.
    Does other stuff too. Download from http://www.realezsites.com/bus/primitivesoftware
    --
    Jim Cone
    San Francisco, USA


    "Nugget" <[email protected]>
    wrote in message
    When I select text, the FORMAT menu & EFFECTS block does not provide an
    uppercase option.

    Any help will be greatly appreciated.

    Lar


  4. #4
    Gord Dibben
    Guest

    Re: Easiest way to CAPITALIZE entire worksheet ?

    Just be warned about this macro.

    If there are any formulas in the used range, they will all be turned to values.

    Amend to.........

    Sub capitalize_cell()

    Dim Cell As Range
    Dim R As Range
    Set R = ActiveSheet.UsedRange
    For Each Cell In R
    Cell.Formula = UCase(Cell.Formula)
    Next
    End Sub


    Gord Dibben MS Excel MVP

    On Wed, 5 Jul 2006 10:43:36 -0500, jetted
    <[email protected]> wrote:

    >
    >Hi
    >
    >This code should capitalize everything
    >
    >Sub capitalize_cell()
    >
    >Dim Cell As Range
    >Dim R As Range
    >Set R = ActiveSheet.UsedRange
    >'SearchChar = "#"
    >For Each Cell In R
    >valeur = Cell.Value
    >valeur = UCase(valeur)
    >Cell = valeur
    >
    >Next
    >End Sub



+ 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