Private Sub Worksheet_Change(ByVal Target As Range)
Dim der&
If Me.FilterMode Then Me.ShowAllData
der = Cells(Rows.Count, "b").End(xlUp).Row
If der = 1 Then Exit Sub
Range("b1").Resize(der).Sort key1:=[b1], order1:=xlAscending, MatchCase:=False, Header:=xlYes
Columns("b:b").Borders.LineStyle = xlLineStyleNone
Intersect(Columns("b:b"), Range("b1").CurrentRegion).Borders.LineStyle = xlContinuous
End Sub