Change Cell Entry To Uppeercase

  • Thread starter Thread starter Minitman
  • Start date Start date
M

Minitman

Greetings,

Please excuse the cross posting, I wasn't sure if this is a
programming, a function or a misc question.

Is there any way to get a cell to change the input to uppercase?

If so, how many ways are there?

TIA

-Minitman
 
The obvious way

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A1:H10")) Is Nothing Then
With Target
.Value = UCase(.Value)
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

worksheet code module.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
There is no need for the cross posting, and I think that is borne
out in your apology that it was unnecessary. Same people in
all these groups. If you want more than one solution you simply
mention that, which you did.

See http://www.mvps.org/dmcritchie/excel/proper.htm#upper

for worksheet and for programming solutions both macro and event macro.
 

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

Back
Top