S
sylink
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
'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