LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default UPPER function problem

We thought you wanted the text UPPERED as you typed it in but I see you have
a different need.

To change all pre-existing text to UPPER, run this macro on your selected
cells.

Sub Upper()
Dim Cell As Range
Application.ScreenUpdating = False
For Each Cell In Selection
Cell.Formula = UCase(Cell.Formula)
Next
Application.ScreenUpdating = True
End Sub


Gord

On Mon, 02 Mar 2009 12:07:56 -0800, Michael Bean
wrote:

Gord-

Thannks, I understand now; it works on new text, but not on old text. I
was expecting it to execute the code on pre-existing text as well. (I
followed the instructions and pasted as described, I don't know about
activating the sheet, but it is doing what it's meant to do.)

I work with a database which exports an Excel address list file, and the
text needs to be changed to all caps before printing the labels. I had
to manually retype each field. This code now allows me to click each
field then click the text and it becomes all caps. Now if it could be
automated! I considered writing my own app to do it from the desktop,
but it would be best if it could be done right in Excel. Unfortunately,
I don't know much about VBA.

Michael

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


 
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
UPPER function yogart Excel Worksheet Functions 2 March 1st 10 01:53 AM
Upper case and Date problem Chris Hankin[_3_] Excel Programming 2 November 10th 06 08:52 AM
Upper & Lower case problem in VBA Rob Excel Discussion (Misc queries) 2 February 10th 05 07:46 AM
Help With The Upper Function Dmorri254 Excel Worksheet Functions 3 November 5th 04 08:22 PM
Upper/Lower case problem Wild Bill[_2_] Excel Programming 5 August 21st 03 12:46 AM


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