Worksheet event code
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Columns(1)) Is Nothing Then
With Target
.Value = WorksheetFunction.Proper(.Value)
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub
Right-click the sheet tab, select View Code, and paste the code in.
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"i8theburger " wrote in message
...
Is there a way to format a cell so that when I type in "john" it will
display as "John"
Or if I type in "jOhN" it will display as "John"
The PROPER function works if I refernce it to another cell.
I also want to format a cell to display a Canadian Postal Code so that
when I type "v9t5t1" it will display as "V9T 5T1" with a space between
the T and the 5.
Thank you.
---
Message posted from http://www.ExcelForum.com/