Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Upper-case all text in Excel 2003 spreadsheet

Hello,

Could someone please advise on how I can make Excel 2003 automatically
change all text to upper-case in my spreadsheet named "Register".

Any help would be greatly appreciated.

Thanks,

Chris.

Live Long and Prosper :-)

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Upper-case all text in Excel 2003 spreadsheet

The simplest way is to select all cells and change to an ALL CAPS FONT like
Academy or Lithograph. Another method that may work for you is to copy/paste
the area into Word, change case to UPPER and copy/paste back to Excel. Excel
does not have this feature, so it can not do it for you.

Mike F
"Chris Hankin" wrote in message
...
Hello,

Could someone please advise on how I can make Excel 2003 automatically
change all text to upper-case in my spreadsheet named "Register".

Any help would be greatly appreciated.

Thanks,

Chris.

Live Long and Prosper :-)

*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Upper-case all text in Excel 2003 spreadsheet

To change existing text to upper case, use the following
procedu


Sub AAA()
Dim Rng As Range
Application.EnableEvents = False
For Each Rng In ActiveSheet.UsedRange.SpecialCells _
(xlCellTypeConstants, xlTextValues)
Rng.Value = UCase(Rng.Text)
Next Rng
Application.EnableEvents = True
End Sub

To automatically convert data entry to upper case, use the
following event procedure in the Sheet's code module (right-click
the tab and choose View Code).

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.HasFormula = True Then
Exit Sub
End If
If Target.Cells.Count 1 Then
Exit Sub
End If
Application.EnableEvents = False
Target.Value = UCase(Target.Text)
Application.EnableEvents = True
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com





"Chris Hankin" wrote in message
...
Hello,

Could someone please advise on how I can make Excel 2003
automatically
change all text to upper-case in my spreadsheet named
"Register".

Any help would be greatly appreciated.

Thanks,

Chris.

Live Long and Prosper :-)

*** Sent via Developersdex http://www.developersdex.com ***



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Upper-case all text in Excel 2003 spreadsheet

Thanks so much Mike Fogleman and Chip Pearson for your help - very much
appreciated. I ended up using Chip's code and it worked very well.

Cheers,

Chris.

Live Long and Prosper :-)

*** Sent via Developersdex http://www.developersdex.com ***
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
Changing multiple cell text from lower case to upper case Patti Excel Discussion (Misc queries) 2 January 4th 08 08:35 PM
vlookup -- Upper case and Lower case text teec_detroit Excel Discussion (Misc queries) 1 August 6th 07 04:40 PM
Change the text from lower case to upper case in an Excel work boo dave01968 Excel Discussion (Misc queries) 2 December 9th 05 09:09 AM
How can I change an Excel spreadsheet that has UPPER case to PRO. mjmoon Excel Worksheet Functions 1 April 6th 05 10:52 PM
How do I change existing text from lower case to upper case CT Cameron Excel Discussion (Misc queries) 2 November 30th 04 01:07 AM


All times are GMT +1. The time now is 01:12 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"