Cosmetics Capitals

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Just for cosmetic purposes is there anyway to set the input on a cell so that
no matter how something is entered it shows as a capital.
 
You would need a Selection_Change event in VBA to capture that. Search the NG
for code, it's often posted.
 
"Cosmetics"

All caps would look horrible to me and make things hard to read but....

This event code will do the trick.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column > 8 Then Exit Sub
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = UCase(Target.Formula)
ErrHandler:
Application.EnableEvents = True
End Sub

Works on columns A:H........change the >8 to whatever you wish.

Right-click on the sheet tab and "View Code"

Copy/paste the code into that sheet module.

Close the VBE and save the workbook.


Gord Dibben MS Excel MVP
 
Thanks Gord; the all caps is for a specific input cell, the thing described
is done with caps. Thanks for the problem solve, I really did not think it
could be done.
 

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