AllExperts > Excel 
Search      
Excel
Volunteer
Answers to thousands of questions
 Home · More Excel Questions · Answer Library  · Encyclopedia ·
More Excel Answers
Question Library

Ask a question about Excel
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Adelaide carvalho
Expertise
I will be able to answer any question on Excel and Visual Basic for Applications - class modules, recursive procedures and functions are my favourite

Experience

Past/Present clients
Several readers of my Books think they are useful.
 
   

You are here:  Experts > Computing/Technology > Microsoft Software > Excel > Changing font to all caps

Excel - Changing font to all caps


Expert: Adelaide carvalho - 11/23/2004

Question
Is there a way to make text in Excel all caps without doing a formula in a different cell or retyping it?

Thanks for your help!

Answer
Hi Phyllis,
How are you?

Please do the following

1. tools - macro - visual basic editor
2. insert - module
3. copy
Sub ucases()
Dim a As Range
addr = InputBox("type the range address, eg, A1:B10")
Set a = Range(addr)
For i = 1 To a.Rows.Count
  For j = 1 To a.Columns.Count
       a.Cells(i, j) = UCase(a.Cells(i, j))
  Next j
Next i
End Sub
4. file - close and return to excel
5. tools - macro - macros
select ucases
press run

I hope this helps you.
Cheers
Adeloaide

View Follow-Ups    Add to this Answer   Ask a Question


 
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.