need to make empty cell to type upper case letters

C

chusu

I have an excel file I want all text that will be typed in the empty
cells should be upper case. So I have the formula in them and when I
type "msft" and hit enter it should give me "MSFT"
 
T

troy@eXL

I have an excel file I want all text that will be typed in the empty
cells should be upper case. So I have the formula in them and when I
type "msft" and hit enter it should give me "MSFT"

Hi Chusu,

Not sure you can do it that way. I'd think any formula you have in the
cell will be overwritten and destroyed when you type msft.

Alternatively, after doing all the typing you need to, you can run a
quick macro that changes all text to uppercase. Use this:

Sub upCase()

For Each cell In Selection
cell.Value = UCase(cell.Value)
Next cell

End Sub

All you need to do is select the range you want converted then run the
macro!

HTH

cheers,
t.

www.eXtreme-eXcel.com
....be indispensable... you'll Double Your Salary!
 
G

Guest

You can do that using UCase() in a Change event macro:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then 'column A
Target.Value = UCase(Target.Value)
End If
End Sub

This example works on column A.

Regards,
Stefi



„troy@eXL†ezt írta:
 

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