Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 And Target.Row > 1 And Target.Count = 1 Then
Application.ScreenUpdating = False
Application.EnableEvents = False
Target.Value = WorksheetFunction.Proper(Target.Value)
LR = Range("B2").CurrentRegion.Rows.Count + 1
Application.EnableEvents = True
Range("B2:C" & LR).Select
ActiveWorkbook.Worksheets("Blad2").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Blad2").Sort.SortFields.Add _
Key:=Range("B2"), _
SortOn:=xlSortOnValues, _
Order:=xlAscending, DataOption:= _
xlSortTextAsNumbers
With ActiveWorkbook.Worksheets("Blad2").Sort
.SetRange Range("B2:C" & LR)
.Header = xlNo
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Cells(Target.Row + 1, 2).Select
Application.ScreenUpdating = True
End If
End Sub