Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 6 Or Target.Row < 4 Or Target.Count > 1 Then Exit Sub
If Target = "" Then Exit Sub
Application.EnableEvents = False
If IsError(Application.Match(Target, [libelle], 0)) Then
If MsgBox(Target.Value & vbLf & "Ce libellé est inexistant. Voulez-vous l'ajouter?", 292, "Information") = 6 Then ' facutatif
Feuil2.Cells(Feuil2.Cells(Feuil2.Rows.Count, "A").End(xlUp).Row + 1, 1) = Target
If Application.CountA(Feuil2.[a:a]) > 2 Then [libelle].Sort Key1:=[libelle]
End If ' facutatif
End If
Application.EnableEvents = True
End Sub