Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How can I format the cells to capitalize ALL letters in a word?

You can't do that with formatting. There are two ways to do what
you want. The first is to use a formula in another column. Enter
the formula =UPPER(A1) in the first cell of the new column and
copy down as far as you need to go, then copy those values and do
a Paste Special Values over the original data. The second way is
to use VBA code, something like the following:

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Range("A1:A10"), Target) Is Nothing
Then
If Target.HasFormula = False And Target.Cells.Count = 1 Then
Target.Value = UCase(Target.Value)
End If
End If
Application.EnableEvents = True
End Sub


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




"lgb542" wrote in message
...



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
Count only Letters in cells that contain both letters and numbers TommyB Excel Worksheet Functions 2 August 8th 09 12:29 AM
How do I capitalize the first letter of multiple cells? dominic_howden Excel Discussion (Misc queries) 5 December 11th 08 08:45 PM
change capitalize letters to lowercase Sweetart9699 Excel Discussion (Misc queries) 3 January 25th 07 08:30 PM
Number Format - Capitalize Josh O. Excel Discussion (Misc queries) 9 March 15th 06 09:18 PM
How can I capitalize multiple cells that were entered in lowercase musicmaniu Excel Worksheet Functions 2 July 14th 05 04:42 PM


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