Option Explicit
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim lRow As Long
lRow = Cells(Rows.Count, 1).End(xlUp).Row
If Intersect(Range("A1:A" & lRow), Range(Target.Address)) _
Is Nothing Then Exit Sub
With Application
.EnableEvents = True
On Error Resume Next
Target.Value = Application.Proper$(Target.Value)
.EnableEvents = True
End With
End Sub
|