PC Review


Reply
Thread Tools Rate Thread

How to format cells for uppercase entry

 
 
CoDer
Guest
Posts: n/a
 
      9th Aug 2006
I need to format a column so that all cell force any text entry to
uppercase. I've looked into the UPPER() function, but that is something that
would actually take the value from some otther location and display it in
uppercase where the fuction is located, which will not work.

What I'm looking for is something similar to Format->Cells->Numbers, which
allows you to define a format for numbers, so that however a number is
entered in the cell it automatically displays it in the desired format. So
I'd like to be able to have the data entry be in upper or lower case, but
the cell automatically displays it in uppercase. Can that be done?


 
Reply With Quote
 
 
 
 
OZDOC
Guest
Posts: n/a
 
      9th Aug 2006
It could be done but you would need a macro to do it, record a macro while
changing it to upper then set that to worksheet on events macro to the cells
required


"CoDer" <not available> wrote in message
news:(E-Mail Removed)...
>I need to format a column so that all cell force any text entry to
>uppercase. I've looked into the UPPER() function, but that is something
>that would actually take the value from some otther location and display it
>in uppercase where the fuction is located, which will not work.
>
> What I'm looking for is something similar to Format->Cells->Numbers, which
> allows you to define a format for numbers, so that however a number is
> entered in the cell it automatically displays it in the desired format. So
> I'd like to be able to have the data entry be in upper or lower case, but
> the cell automatically displays it in uppercase. Can that be done?
>



 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      9th Aug 2006
CoDer

Event code................

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:H as you enter text in a cell.

Change the 8 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 Tue, 8 Aug 2006 21:04:18 -0700, "CoDer" <not available> wrote:

>I need to format a column so that all cell force any text entry to
>uppercase. I've looked into the UPPER() function, but that is something that
>would actually take the value from some otther location and display it in
>uppercase where the fuction is located, which will not work.
>
>What I'm looking for is something similar to Format->Cells->Numbers, which
>allows you to define a format for numbers, so that however a number is
>entered in the cell it automatically displays it in the desired format. So
>I'd like to be able to have the data entry be in upper or lower case, but
>the cell automatically displays it in uppercase. Can that be done?
>


 
Reply With Quote
 
David McRitchie
Guest
Posts: n/a
 
      12th Aug 2006
The event code will change the actual content to uppercase.
There is no way to display an actual content as if it were uppercase.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to format cells for entry... =?Utf-8?B?UmFuZGk=?= Microsoft Excel New Users 1 20th Aug 2007 10:56 PM
How to format cells in upercase entry =?Utf-8?B?Sm9obiBDYWxkZXI=?= Microsoft Excel New Users 1 10th Aug 2006 04:51 AM
Validation rule - How do I force all Uppercase entry =?Utf-8?B?RGVubmlz?= Microsoft Access 6 10th Apr 2006 11:36 PM
Force entry as uppercase sjh54321 Microsoft Excel Discussion 4 18th Sep 2005 02:20 PM
can you ensure that all text entry is in uppercase John Microsoft Excel Worksheet Functions 15 30th Sep 2004 10:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:45 PM.