Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
how do you cap all letters on a spread sheet in excel ?
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Excel has an UPPER Function.
Assuming Column A with lower case text. In B1 enter = UPPER(A1) Drag/copy down. You have to do this for each column of text. Method 2 involves a VBA macro which converts the text in-cell without using a formula and can cover the entire sheet at a go. Sub Upper_Case() 'David McRitchie, programming, 2003-03-07 Dim rng1 As Range, rng2 As Range, bigrange As Range Dim cell As Range Application.ScreenUpdating = False Application.Calculation = xlCalculationManual On Error Resume Next Set rng1 = Intersect(Selection, _ Selection.SpecialCells(xlCellTypeConstants)) Set rng2 = Intersect(Selection, _ Selection.SpecialCells(xlCellTypeFormulas)) On Error GoTo 0 If rng1 Is Nothing Then Set bigrange = rng2 ElseIf rng2 Is Nothing Then Set bigrange = rng1 Else Set bigrange = Union(rng1, rng2) End If If bigrange Is Nothing Then MsgBox "All cells in range are EMPTY" GoTo done End If For Each cell In bigrange cell.Formula = UCase(cell.Formula) Next cell done: Application.Calculation = xlCalculationAutomatic Application.ScreenUpdating = True End Sub Gord Dibben MS Excel MVP On Sat, 3 Feb 2007 11:57:00 -0800, ross wrote: how do you cap all letters on a spread sheet in excel ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Columns in Excel labeled numbers rather than letters? | Excel Discussion (Misc queries) | |||
My Excel cols have #s, not letters. How get letters? | Excel Worksheet Functions | |||
Running Excel 2000 VBA Application on Excel 2003 | Excel Worksheet Functions | |||
SUDDENLY I CANT input numbers in excel 2003 only letters | Excel Discussion (Misc queries) | |||
How do you sort words in Excel by the number of letters in a word | New Users to Excel |