Bonjour
Le détail
Code dans ThisWorkbook
Private Sub Workbook_Open()
Sheets("Feuil1").OnEntry = "Entree"
End Sub
Code dans Module
Sub Entree()
If ActiveCell.Column = 2 Then
Tri
End If
End Sub
Sub Tri()
Dim LastRow As Long
LastRow = ActiveSheet.Range("B12").End(xlDown).Row
Range("B13:Q" & LastRow).Sort Key1:=Range("B12"), Order1:=xlAscending, OrderCustom:=1, MatchCase _
:=False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal
End Sub
Cordialement