#1   Report Post  
Trevor Coultart
 
Posts: n/a
Default Force upper case?


Hi all,

Does anyone know of a way I can force cell contents to appear in upper
case? I'm tidying up a worksheet that is completed by many users and
one of the columns is for a reference code which has three letters and
six numbers (ABC123456). Some users leave it in lower case, and the
resulting sheet looks a mess.

Can I get Excel to always display this column in upper case regardless
of what the user inputs?

Trevor


--
Trevor Coultart
------------------------------------------------------------------------
Trevor Coultart's Profile: http://www.excelforum.com/member.php...o&userid=24945
View this thread: http://www.excelforum.com/showthread...hreadid=384807

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Trevor,

Try this

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("H1:H10")) Is Nothing Then
With Target
.Value = UCase(.Value)
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob Phillips

"Trevor Coultart"
<Trevor.Coultart.1rqt2g_1120644331.6361@excelfor um-nospam.com wrote in
message news:Trevor.Coultart.1rqt2g_1120644331.6361@excelf orum-nospam.com...

Hi all,

Does anyone know of a way I can force cell contents to appear in upper
case? I'm tidying up a worksheet that is completed by many users and
one of the columns is for a reference code which has three letters and
six numbers (ABC123456). Some users leave it in lower case, and the
resulting sheet looks a mess.

Can I get Excel to always display this column in upper case regardless
of what the user inputs?

Trevor


--
Trevor Coultart
------------------------------------------------------------------------
Trevor Coultart's Profile:

http://www.excelforum.com/member.php...o&userid=24945
View this thread: http://www.excelforum.com/showthread...hreadid=384807



  #3   Report Post  
olasa
 
Posts: n/a
Default


=UPPER("abc")
-- ABC
=PROPER("abc")
-- Abc
=LOWER("aBc")
--abc

Ola Sandström


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=384807

  #4   Report Post  
paul
 
Posts: n/a
Default

a helper column with =UPPER(H1) abc456 in cell H1 was converted to ABC456 in
my helper cell.....
--
paul
remove nospam for email addy!



"Trevor Coultart" wrote:


Hi all,

Does anyone know of a way I can force cell contents to appear in upper
case? I'm tidying up a worksheet that is completed by many users and
one of the columns is for a reference code which has three letters and
six numbers (ABC123456). Some users leave it in lower case, and the
resulting sheet looks a mess.

Can I get Excel to always display this column in upper case regardless
of what the user inputs?

Trevor


--
Trevor Coultart
------------------------------------------------------------------------
Trevor Coultart's Profile: http://www.excelforum.com/member.php...o&userid=24945
View this thread: http://www.excelforum.com/showthread...hreadid=384807


  #5   Report Post  
Anne Troy
 
Posts: n/a
Default

Several ways:
http://www.officearticles.com/excel/...ft_exce l.htm
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Trevor Coultart"
<Trevor.Coultart.1rqt2g_1120644331.6361@excelfor um-nospam.com wrote in
message news:Trevor.Coultart.1rqt2g_1120644331.6361@excelf orum-nospam.com...

Hi all,

Does anyone know of a way I can force cell contents to appear in upper
case? I'm tidying up a worksheet that is completed by many users and
one of the columns is for a reference code which has three letters and
six numbers (ABC123456). Some users leave it in lower case, and the
resulting sheet looks a mess.

Can I get Excel to always display this column in upper case regardless
of what the user inputs?

Trevor


--
Trevor Coultart
------------------------------------------------------------------------
Trevor Coultart's Profile:

http://www.excelforum.com/member.php...o&userid=24945
View this thread: http://www.excelforum.com/showthread...hreadid=384807





  #6   Report Post  
Trevor Coultart
 
Posts: n/a
Default


Many thanks for the responses. I've used a combination: "upper" to
convert all the existing entries and Bob's magic formula to ensure that
it stays looking tidy. (Bob - thanks. I have not the faintest idea how
that works but it does.)

Trevor


--
Trevor Coultart
------------------------------------------------------------------------
Trevor Coultart's Profile: http://www.excelforum.com/member.php...o&userid=24945
View this thread: http://www.excelforum.com/showthread...hreadid=384807

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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
EXCEL:NUMBER TO GREEK WORDS vag Excel Worksheet Functions 1 June 15th 05 05:57 PM
convert value in word. For Exampe Rs.115.00 convert into word as . Shakti Excel Discussion (Misc queries) 1 May 10th 05 12:00 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Is there a formula to spell out a number in excel? Sha-nay-nay Excel Worksheet Functions 2 December 18th 04 09:25 PM


All times are GMT +1. The time now is 12:53 PM.

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"