+ Reply to Thread
Results 1 to 5 of 5

How to change text to uppercase in a column on entry

  1. #1
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Petersfield, Hampshire, UK
    MS-Off Ver
    MS Office for Mac ver 16
    Posts
    135

    How to change text to uppercase in a column on entry

    I am just about to start a large worksheet in which I want all the text entered into column A to be upper case, and all other columns to be Sentence case. I have some code which forces all input to all columns into uppercase, as follows

    Please Login or Register  to view this content.
    [/INDENT]
    Can the Range be specified as column A only? and can I then specify columns B to I as Sentence format?

    TIA

    Geoff
    Geoff Culbertson
    Petersfield, UK

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: How to change text to uppercase in a column on entry

    Hi Glio, maybe something like this:

    Please Login or Register  to view this content.
    Last edited by Arkadi; 04-24-2018 at 03:36 PM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: How to change text to uppercase in a column on entry

    If you have real sentences then you could put this in a module: (haven't tested the function)

    Please Login or Register  to view this content.
    This would then allow you to change the B:I bit of the change event to:

    Please Login or Register  to view this content.
    Last edited by Arkadi; 04-24-2018 at 03:44 PM.

  4. #4
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Petersfield, Hampshire, UK
    MS-Off Ver
    MS Office for Mac ver 16
    Posts
    135

    Re: How to change text to uppercase in a column on entry

    Arkadi,
    Thanks very much for both those scripts. They have done exactly what I wanted. I'm not sure what you meant with the Target.value bit, but just putting the module in has worked. Thanks so much for an almost immediate answer.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: How to change text to uppercase in a column on entry

    In a change event, Target is the cell (or cells) that changed, triggering the change event to fire in the first place. Target is the range that changed, so Target.Value is the value of that cell/Range

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Automatically change text to uppercase
    By Santie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-30-2020, 03:01 PM
  2. change text to uppercase
    By coopman64 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-17-2012, 09:12 AM
  3. Replies: 7
    Last Post: 07-09-2012, 11:48 AM
  4. Replies: 3
    Last Post: 12-08-2010, 09:36 AM
  5. cell entry restricted to text, 2-3 letters & uppercase
    By whitSC in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2007, 03:30 PM
  6. Replies: 4
    Last Post: 07-31-2006, 02:05 AM
  7. using EVALUATE to change text to uppercase
    By Myles in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2005, 01:00 PM
  8. Force entry as uppercase
    By sjh54321 in forum Excel General
    Replies: 3
    Last Post: 09-18-2005, 09:05 AM

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