Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mjmoon
 
Posts: n/a
Default How can I change an Excel spreadsheet that has UPPER case to PRO.


  #2   Report Post  
Otto Moehrbach
 
Posts: n/a
Default

You say "PRO". Do you mean Proper?
I'll assume you do. If you have just a few cells to do, look up the Proper
function in help.
If you have a bunch then this macro will do it for you. Paste this macro
into a regular module and run the macro. This macro will operate on the
active sheet. You have to select another sheet and run the macro again if
you have more than one sheet.
Sub ProperCase()
Dim i As Range
For Each i In Range(Range("A1"), Range("A1").SpecialCells(xlLastCell))
If Not i.HasFormula Then
i.Value = Application.Proper(i.Value)
End If
Next
End Sub

If you have a bunch of sheets in the file and you want to do them all in one
swoop, use this macro:
Sub ProperCaseManyShts()
Dim ws As Worksheet
Dim i As Range
For Each ws In ActiveWorkbook.Worksheets
For Each i In Range(Range("A1"),
Range("A1").SpecialCells(xlLastCell))
If Not i.HasFormula Then
i.Value = Application.Proper(i.Value)
End If
Next i
Next ws
End Sub

HTH Otto

"mjmoon" 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
How to change the color of all series in an excel chart in one go. Marielle Charts and Charting in Excel 2 May 3rd 23 07:45 PM
Is there a way to insert a formula, password or macro in an excel spreadsheet that will automatically delete the spreadsheet? oil_driller Excel Discussion (Misc queries) 1 February 8th 05 09:34 AM
Excel should have a quick and simple "change case" function like . NinaSvendsen Excel Worksheet Functions 1 January 28th 05 03:15 PM
how do I change the text case of imported data in excel? ArtLene Excel Discussion (Misc queries) 1 January 26th 05 07:08 AM
Copying an Excel spreadsheet to a Word document KG Excel Discussion (Misc queries) 1 November 28th 04 07:38 PM


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