Change range in capital letters on load

G

Guest

Hi all

How can I change the range between B9 to B500 in capital letters.
I would like to do it in a "on load" event, not using "=UPPER" because I
dont wanna use adjacent column.

Any help?

Cheers
Kelson
 
J

JW

Do you mean when the workbook first opens? Place something like this
in the ThisWorkbook module.
Private Sub Workbook_Open()
Dim r As Range
For Each r In Sheets("Data").Range("B9:B500")
If Not r.HasFormula And Not IsNumeric(r) Then _
r.Value = UCase(r.Value)
Next r
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top