A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

All Cap



 
 
Thread Tools Display Modes
  #1  
Old August 19th, 2004, 02:06 PM
Denise
external usenet poster
 
Posts: n/a
Default All Cap

Is there a way to change text in an Excel spreadsheet from
either lower case/initial case to ALL CAP??
  #2  
Old August 19th, 2004, 07:18 PM
Paul B
external usenet poster
 
Posts: n/a
Default

Denise, here is one way

Sub TextConvert()
'By Ivan F Moala

'will change the text that you have selected,

'if no text is selected it will change the whole sheet
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


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 2000 & 2003
** remove news from my email address to reply by email **





"Denise" wrote in message
...
Is there a way to change text in an Excel spreadsheet from
either lower case/initial case to ALL CAP??



  #3  
Old August 20th, 2004, 10:58 PM
Rob Phillips
external usenet poster
 
Posts: n/a
Default

Hi Denise,

You could try the following:

=UPPER(text in quotations)

or

=UPPER(A1) A1 being cell location

Then paste special back to cell, choose values under this option.

Rob.

"Denise" wrote in message
...
Is there a way to change text in an Excel spreadsheet from
either lower case/initial case to ALL CAP??



  #4  
Old August 21st, 2004, 02:20 PM
David McRitchie
external usenet poster
 
Posts: n/a
Default

Hi Denise,
If you want to change text constants in a selection see
http://www.mvps.org/dmcritchie/excel/proper.htm
using a macro.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Rob Phillips" wrote in message ...
Hi Denise,

You could try the following:

=UPPER(text in quotations)

or

=UPPER(A1) A1 being cell location

Then paste special back to cell, choose values under this option.

Rob.

"Denise" wrote in message
...
Is there a way to change text in an Excel spreadsheet from
either lower case/initial case to ALL CAP??





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.