Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
If Not Intersect(Target, Range("c1:x65536")) Is Nothing Then Exit Sub
On Error Resume Next
If Not Intersect(Target, [Tableau1]) Is Nothing Then
' Ici la macro trie d'après la colonne choisie et la valeur de la cellule active.
Range("Tableau1").AutoFilter Field:=Target.Column, Criteria1:=Target.Text, _
Visibledropdown:=True
If Target.Text = "" Then: MsgBox "Il n'y a plus de données dans le Tableau", , "Tableau": Exit Sub
End If
End Sub