Hi John (O'Connor),
These are Event macro they fix up the cell upon Entry.
So no numbers that wouldn't have been entered as numbers
will be treated any differently. If you enter a 001 into any
cell that is formatted as General it will produce 1 regardless
of this event change macro.
Canadian zip codes as already mentioned are mixed digits
and letters so they are text. UCASE only affects letters.
But there is a problem with John's (McGimpsey) code, in that
the poster wanted an entire column not just cell A1.
Here is a better example:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'to install -- right-click on the sheettab of the corresponding
' sheet and choose 'view code'. Paste the following procedure
' in the module. -- this is for EVENT macros ONLY.
If Target.Column = 1 Then Exit Sub
If Target.Row = 1 Then Exit Sub
If Target.Column <> 6 Then Exit Sub 'column 6 is column F
Application.EnableEvents = False
Target.Formula = UCase(Target.Formula)
Application.EnableEvents = True
End Sub
More information on Event macros, see
http://www.mvps.org/dmcritchie/excel/event.htm
Note Event Macros are *not* installed the same as regular
macros.
This macro may appear as Simulating Caps Lock on a column,
but it certainly does not turn on the Caps Lock.