Thread: UCase Help
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Harald Staff Harald Staff is offline
external usenet poster
 
Posts: 1,327
Default UCase Help

Sub UcaseUs()
Dim R As Range, C As Range
On Error Resume Next
Set R = Selection
Set R = Intersect(R, ActiveSheet.UsedRange)
Set R = R.SpecialCells(xlCellTypeConstants, 2)
If R Is Nothing Then Exit Sub
For Each C In R
C.Formula = UCase$(C.Formula)
Next
End Sub

Select any range of cells and run.
--
HTH. Best wishes Harald
Followup to newsgroup only please

"holder2k" skrev i melding
...

How can I create a macro to UCase an entire spreadsheet ? I'd like to
utilize this function to make sure all characters on the sheet are
Uppercase.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/