Sub Ajout()
With Sheets("Feuil1").ListObjects("Tableau2").ListRows.Add
.Range(1, 1) = Range("B6")
End With
End Sub
Sub Filtre()
If Range("B6") <> "" Then
Range("Tableau2[[#Headers],[Dates]]").AutoFilter
Range("Tableau2").AutoFilter Field:=1, Criteria1:=Range("B6")
Else
SupprimeFiltre
End If
End Sub
Sub SupprimeFiltre()
If ActiveSheet.FilterMode = True Then
Range("Tableau2[[#Headers],[Dates]]").AutoFilter
End If
End Sub