Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi All
A bit of an odd one but is there a way to select all cells and make all text capitals? I know there is a formula but I was hoping to do Ctrl A and then turn all small case to capitals. Any help greatly appreciated Cheers Rexmann Ps using excel 2003 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can do it but you need to use a macro something like this...
public sub MakeAllCaps dim rng as range on error resume next for each rng in intersect(usedrange, selection) rng.value = ucase(rng.value) next rng on error goto 0 end sub -- HTH... Jim Thomlinson "rexmann" wrote: Hi All A bit of an odd one but is there a way to select all cells and make all text capitals? I know there is a formula but I was hoping to do Ctrl A and then turn all small case to capitals. Any help greatly appreciated Cheers Rexmann Ps using excel 2003 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sorry I should have mentioned. That code will convert formulas to values...
If you have formulas that you do not want to overwrite then try this... public sub MakeAllCaps dim rng as range on error resume next for each rng in intersect(usedrange, selection.SpecialCells(xlCellTypeConstants)) rng.value = ucase(rng.value) next rng on error goto 0 end sub -- HTH... Jim Thomlinson "Jim Thomlinson" wrote: You can do it but you need to use a macro something like this... public sub MakeAllCaps dim rng as range on error resume next for each rng in intersect(usedrange, selection) rng.value = ucase(rng.value) next rng on error goto 0 end sub -- HTH... Jim Thomlinson "rexmann" wrote: Hi All A bit of an odd one but is there a way to select all cells and make all text capitals? I know there is a formula but I was hoping to do Ctrl A and then turn all small case to capitals. Any help greatly appreciated Cheers Rexmann Ps using excel 2003 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Nice one thank you
Cheers Rexmann "Jim Thomlinson" wrote: You can do it but you need to use a macro something like this... public sub MakeAllCaps dim rng as range on error resume next for each rng in intersect(usedrange, selection) rng.value = ucase(rng.value) next rng on error goto 0 end sub -- HTH... Jim Thomlinson "rexmann" wrote: Hi All A bit of an odd one but is there a way to select all cells and make all text capitals? I know there is a formula but I was hoping to do Ctrl A and then turn all small case to capitals. Any help greatly appreciated Cheers Rexmann Ps using excel 2003 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cosmetics Capitals | Excel Worksheet Functions | |||
All Capitals | Excel Worksheet Functions | |||
Sortng Problem with capitals | New Users to Excel | |||
Text formatted as All Capitals? | New Users to Excel | |||
Text All Capitals | New Users to Excel |