Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default How to format cells for uppercase entry

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?


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 13
Default How to format cells for uppercase entry

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
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default How to format cells for uppercase entry

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?


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 903
Default How to format cells for uppercase entry

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I compare the entry in one cell against all other cells Micki Excel Discussion (Misc queries) 1 February 10th 06 02:46 AM
Number format exactly the same, displays differently in some cells eider Excel Discussion (Misc queries) 1 July 29th 05 12:26 AM
format cells having text steve Excel Discussion (Misc queries) 2 July 15th 05 01:24 AM
format cells Alfred Excel Worksheet Functions 2 April 1st 05 03:43 PM
Protected cells -automatically format to a different color Fred Evans Excel Discussion (Misc queries) 9 December 3rd 04 12:59 PM


All times are GMT +1. The time now is 04:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"