Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default HOW TO CHANGE EXISTING XL DATA SHEET TO ALL UPPERCASE TEXT

I have a data sheet with a mix of upper and lower case text in various fonts.
How do I change it to all upper case? Can change font & size ok. Thanks.
Regards John
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default HOW TO CHANGE EXISTING XL DATA SHEET TO ALL UPPERCASE TEXT

John, you can use a macro like this, select the range you want to change and
then run it

Sub MAKE_CAPS()
'select range and run this to change to all CAPS
Dim cel As Range
For Each cel In Intersect(Selection, _
ActiveSheet.UsedRange)
cel.Formula = UCase$(cel.Formula)
Next
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"John" wrote in message
...
I have a data sheet with a mix of upper and lower case text in various

fonts.
How do I change it to all upper case? Can change font & size ok. Thanks.
Regards John



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default HOW TO CHANGE EXISTING XL DATA SHEET TO ALL UPPERCASE TEXT

John,
You will have to use the "Upper" worksheet function in a blank column.
If you have multiple columns of data, that is not always a useful fix.

The free Excel add-in "Excel Extras" adds... Lower, Upper, Proper and Sentence
case options to the format menu (select your data and click the menu item).
The add-in also does other useful stuff.

Download from (no registration required) ...
http://www.realezsites.com/bus/primitivesoftware
--
Jim Cone
San Francisco, USA


"John"

wrote in message
I have a data sheet with a mix of upper and lower case text in various fonts.
How do I change it to all upper case? Can change font & size ok. Thanks.
Regards John
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default HOW TO CHANGE EXISTING XL DATA SHEET TO ALL UPPERCASE TEXT

Thanks for your advice - works well! Regards John

"Jim Cone" wrote:

John,
You will have to use the "Upper" worksheet function in a blank column.
If you have multiple columns of data, that is not always a useful fix.

The free Excel add-in "Excel Extras" adds... Lower, Upper, Proper and Sentence
case options to the format menu (select your data and click the menu item).
The add-in also does other useful stuff.

Download from (no registration required) ...
http://www.realezsites.com/bus/primitivesoftware
--
Jim Cone
San Francisco, USA


"John"

wrote in message
I have a data sheet with a mix of upper and lower case text in various fonts.
How do I change it to all upper case? Can change font & size ok. Thanks.
Regards John

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default HOW TO CHANGE EXISTING XL DATA SHEET TO ALL UPPERCASE TEXT

John

Example only..........

Assume you have data in column A

In B1 enter =UPPER(A1)

Copy down column A

When happy, copy Column B then, in place, EditPaste SpecialValuesOKEsc.



Gord Dibben MS Excel MVP



On Sun, 30 Jul 2006 08:07:01 -0700, John wrote:

I have a data sheet with a mix of upper and lower case text in various fonts.
How do I change it to all upper case? Can change font & size ok. Thanks.
Regards John




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default HOW TO CHANGE EXISTING XL DATA SHEET TO ALL UPPERCASE TEXT

Copy the following macro:

Sub Change_Case()
Dim ocell As Range
Dim Ans As String
Ans = Application.InputBox("Type in Letter" & vbCr & _
"(L)owercase, (U)ppercase, (S)entence, (T)itles ")
If Ans = "" Then Exit Sub
For Each ocell In Selection.SpecialCells(xlCellTypeConstants, 2)
Select Case UCase(Ans)
Case "L": ocell = LCase(ocell.Text)
Case "U": ocell = UCase(ocell.Text)
Case "S": ocell = UCase(Left(ocell.Text, 1)) & _
LCase(Right(ocell.Text, Len(ocell.Text) - 1))
Case "T": ocell = Application.WorksheetFunction.Proper(ocell.Text)
End Select
Next

End Sub


"Gord Dibben" wrote:

John

Example only..........

Assume you have data in column A

In B1 enter =UPPER(A1)

Copy down column A

When happy, copy Column B then, in place, EditPaste SpecialValuesOKEsc.



Gord Dibben MS Excel MVP



On Sun, 30 Jul 2006 08:07:01 -0700, John wrote:

I have a data sheet with a mix of upper and lower case text in various fonts.
How do I change it to all upper case? Can change font & size ok. Thanks.
Regards John



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 do I copy text from one workbook to another kmb0702 Excel Discussion (Misc queries) 7 June 23rd 06 04:21 PM
Macro to change data in a sheet Diana Excel Discussion (Misc queries) 1 April 28th 06 08:01 PM
Pull data from another sheet based on certain criteria steve_sr2 Excel Discussion (Misc queries) 1 February 23rd 06 10:08 AM
Using a relative SHEET reference for source data in a chart James Charts and Charting in Excel 6 August 16th 05 05:07 PM
Printing data validation scenarios SJC Excel Worksheet Functions 14 July 24th 05 12:43 AM


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