View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.setup
Stefi Stefi is offline
external usenet poster
 
Posts: 2,646
Default How to change cases from small to capital in all cells?

Try this macro:
Sub chtocaps()
For Each cell In ActiveSheet.UsedRange
cell.Value = UCase(cell.Value)
Next cell
End Sub

Regards,
Stefi


€˛Khoshravan€¯ ezt Ć*rta:

I have to change the case of all characters from small to Capital in all
cells of an excel file (Excel 2003 and lower).
MS Word has a command called: Change case, which changes the case of
selected letters from Capital to small and vise versa. Is there any
equivalent of this command in Excel? I couldnt find it. If there is not,
what is the fastest way to change all letters from small to Capital in Excel?
If there is any Macro or VBA solution, please let me know.
One way might be to Copy/paste to word, do the change and return.


--
Rasoul Khoshravan Azar
Kobe University, Kobe, Japan