Format cell to convert to Upper case
You cannot format a cell to achieve this.
You would use a helper cell with the formula =UPPER(A1)
Or sheet event code.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column 1 Then Exit Sub
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = UCase(Target.Formula)
ErrHandler:
Application.EnableEvents = True
End Sub
Right-click on the sheet tab and "View Code".
Copy/paste the event code into that module.
Edit to suit........as written, works only on column A
When done editing, Alt + q to return to Excel.
Gord Dibben MS Excel MVP
On Fri, 30 May 2008 14:04:00 -0700, widman
wrote:
Is there a way to format an individual cell/column so that what is typed in
that cell is automatically shown as Upper case?
ei: x7898 would show as X7898 no matter how it was typed.
|