+ Reply to Thread
Results 1 to 9 of 9

Upper Case

  1. #1
    Forum Contributor
    Join Date
    06-15-2004
    Posts
    246

    Upper Case

    Is there a way to set particular cells so that no matter what is typed into them it will always apear in upper case. I realise you can do this if you set the column next to it to read =upper([cell ref]) but i dont want to do it this way is there an alternatve perhaps via code im not sure

  2. #2
    Registered User
    Join Date
    05-26-2006
    Posts
    4
    One possible solution is to use the Worksheet_Change event. I have not assembled any code to solve your problem directly, but I have used this event to perform similar tasks. Hope this is a start

  3. #3
    Daniel CHEN
    Guest

    Re: Upper Case

    You can download some free add-in which allows you to change a range of text
    to upper case immediately, not use Upper function on each individual cell.


    --
    Best regards,
    ---
    Yongjun CHEN
    =================================
    XLDataSoft - Data Analysis Expert, Excel/VBA Specialist
    - - - - www.XLDataSoft.com - - - -
    Free Excel-Based Data Processing Tool is Available for Download
    Free Excel / VBA Training Materials is Available for Download
    =================================
    "ceemo" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Is there a way to set particular cells so that no matter what is typed
    > into them it will always apear in upper case. I realise you can do this
    > if you set the column next to it to read =upper([cell ref]) but i dont
    > want to do it this way is there an alternatve perhaps via code im not
    > sure
    >
    >
    > --
    > ceemo
    > ------------------------------------------------------------------------
    > ceemo's Profile:
    > http://www.excelforum.com/member.php...o&userid=10650
    > View this thread: http://www.excelforum.com/showthread...hreadid=545914
    >




  4. #4
    Daniel CHEN
    Guest

    Re: Upper Case

    You can download some free add-in which allows you to change a range of text
    to upper case immediately, not use Upper function on each individual cell.


    --
    Best regards,
    ---
    Yongjun CHEN
    =================================
    XLDataSoft - Data Analysis Expert, Excel/VBA Specialist
    - - - - www.XLDataSoft.com - - - -
    Free Excel-Based Data Processing Tool is Available for Download
    Free Excel / VBA Training Materials is Available for Download
    =================================
    "ceemo" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Is there a way to set particular cells so that no matter what is typed
    > into them it will always apear in upper case. I realise you can do this
    > if you set the column next to it to read =upper([cell ref]) but i dont
    > want to do it this way is there an alternatve perhaps via code im not
    > sure
    >
    >
    > --
    > ceemo
    > ------------------------------------------------------------------------
    > ceemo's Profile:
    > http://www.excelforum.com/member.php...o&userid=10650
    > View this thread: http://www.excelforum.com/showthread...hreadid=545914
    >




  5. #5
    Daniel CHEN
    Guest

    Re: Upper Case

    You can download some free add-in which allows you to change a range of text
    to upper case immediately, not use Upper function on each individual cell.


    --
    Best regards,
    ---
    Yongjun CHEN
    =================================
    XLDataSoft - Data Analysis Expert, Excel/VBA Specialist
    - - - - www.XLDataSoft.com - - - -
    Free Excel-Based Data Processing Tool is Available for Download
    Free Excel / VBA Training Materials is Available for Download
    =================================
    "ceemo" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Is there a way to set particular cells so that no matter what is typed
    > into them it will always apear in upper case. I realise you can do this
    > if you set the column next to it to read =upper([cell ref]) but i dont
    > want to do it this way is there an alternatve perhaps via code im not
    > sure
    >
    >
    > --
    > ceemo
    > ------------------------------------------------------------------------
    > ceemo's Profile:
    > http://www.excelforum.com/member.php...o&userid=10650
    > View this thread: http://www.excelforum.com/showthread...hreadid=545914
    >




  6. #6
    Forum Contributor
    Join Date
    06-15-2004
    Posts
    246

    upper case

    thanks for your advise but im looking for someonthing automated as others will be using the workbook and i want to keep manual intervention to the minimum


    suggestions welcome

  7. #7
    Gord Dibben
    Guest

    Re: Upper Case

    ceemo

    Right-click on the sheet tab and "View Code".

    Paste this code into that sheet module.

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


    In columns A, B and C any text typed into a cell will be Upper case.
    Adjust range to suit.


    Gord Dibben MS Excel MVP


    On Fri, 26 May 2006 12:53:58 -0500, ceemo
    <[email protected]> wrote:

    >
    >thanks for your advise but im looking for someonthing automated as
    >others will be using the workbook and i want to keep manual
    >intervention to the minimum
    >
    >
    >suggestions welcome



  8. #8
    Registered User
    Join Date
    05-26-2006
    Posts
    4
    here is an example of how to use the event
    right click on the sheet tab and click "view code"
    paste the code below into the vb screen that opens

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    Range("A1").Select


    strSelected = ActiveCell.Value
    UpperString = UCase(strSelected)
    ActiveCell.Value = UpperString
    End Sub

    whatever you type in range a1 will be uppercase once you leave the cell.
    you could extend this to more cells.

  9. #9
    Forum Contributor
    Join Date
    06-15-2004
    Posts
    246

    top draw

    excellent thank you peeps

+ 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