Thread: Use of UCase
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
sylink[_3_] sylink[_3_] is offline
external usenet poster
 
Posts: 17
Default Use of UCase

The code below runs well when used with the worksheet function
'PROPER' When substituted with the function 'UCase', it aborts. How do
I tweak the code to run with UCase.


ActiveCell.CurrentRegion.Columns("A:A").Select
RowCount = Application.Count(Columns(1))

For Each rng In Range("H3:H" & RowCount + 3)
rng.Value = Application.WorksheetFunction.UCase(rng.Value)

Next