+ Reply to Thread
Results 1 to 5 of 5

Format a cell to display as all caps

Hybrid View

  1. #1
    WAF
    Guest

    Format a cell to display as all caps

    Is there any way to format a cell so that text entered will always display in
    caps?

  2. #2
    Michael
    Guest

    RE: Format a cell to display as all caps

    Hi
    Not Directly !......but you can use the UPPER function.
    If your data is in A1, put =UPPER(A1) in A2.
    This will convet whatever you type in A1 to Uppercase in A2

    HTH
    Michael

    "WAF" wrote:

    > Is there any way to format a cell so that text entered will always display in
    > caps?


  3. #3
    Gord Dibben
    Guest

    Re: Format a cell to display as all caps

    No.

    You cannot format a cell to display caps.

    You can use event code in the worksheet to change the text to caps when you
    enter it.

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Target.Column > 8 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 Columns A through H only. (> 8 limits)

    Right-click on the sheet tab and copy/paste the code into the sheet module.


    Gord Dibben Excel MVP

    On Sun, 20 Mar 2005 20:39:02 -0800, WAF <WAF@discussions.microsoft.com> wrote:

    >Is there any way to format a cell so that text entered will always display in
    >caps?



  4. #4
    Registered User
    Join Date
    12-30-2013
    Location
    Kalamazoo, MI
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Format a cell to display as all caps

    This works great, except I need it to work with columns 4, 6, 9, 12, & 13. Do you know of a way to do that? Thank you.

  5. #5
    Registered User
    Join Date
    02-18-2013
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Format a cell to display as all caps

    Maybe change
    If Target.Column > 8 Then Exit Sub
    to
    If Target.Column <> 4 Or Target.Column <> 6 Or Target.Column <> 9 Or Target.Column <> 12 Or Target.Column <> 13 Then Exit Sub
    Not sure if it will work this way though.

    Nope.
    Last edited by mellowmarshall; 12-30-2013 at 06:09 PM.

+ 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