+ Reply to Thread
Results 1 to 3 of 3

excel format

  1. #1
    Pam Coleman
    Guest

    excel format

    Is there a way that when a user types text in a cell (col A) that if they
    type it in small letters it will automatically format to all caps?

  2. #2
    Gord Dibben
    Guest

    Re: excel format

    Pam

    No format available.

    You would have to use event code in VBA.

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Target.Column <>1 Then Exit Sub
    On Error GoTo ErrHandler
    Application.EnableEvents = False
    Target.Formula = UCase(Target.Formula)
    ErrHandler:
    Application.EnableEvents = True
    End Sub

    As written, operates on Column A as you enter text in any cell in Column A

    Change the 1 to whatever you wish.

    This is event code and must go into the sheet module.

    Right-click on the sheet tab and "View Code". Copy and paste the above into
    that module.


    Gord Dibben MS Excel MVP

    On Thu, 20 Jul 2006 09:36:01 -0700, Pam Coleman
    <[email protected]> wrote:

    >Is there a way that when a user types text in a cell (col A) that if they
    >type it in small letters it will automatically format to all caps?



  3. #3
    Forum Contributor
    Join Date
    07-13-2006
    Posts
    400
    you can convert existing data to uppercase using =upper()

    to do it on the fly you'd need to apply a macro as above

+ 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