Sub Ellipse_Cliquer()
Dim i As Byte
Dim debut As String, fin As String, mois As String, element As String
With Sheets("Filtre")
debut = Format(.Range("E9").Value, "\>\=mm/dd/yyyy")
fin = Format(.Range("G9").Value, "\<\=mm/dd/yyyy")
mois = .Range("E11").Value
element = .Range("E13").Value
End With
'valeur null
If debut <> vbNullString Then jour = debut: i = 1
If fin <> vbNullString Then jour = fin: i = 1
If debut <> vbNullString And fin <> vbNullString Then i = 2
With Sheets("Mouvement").ListObjects(1)
.AutoFilter.ShowAllData
Select Case i
Case Is = 1
.Range.AutoFilter field:=1, Criteria1:=Array(1, jour)
Case Is = 1
.Range.AutoFilter field:=3, Operator:=xlAnd, Criteria1:=debut, Criteria2:=fin
End Select
'filtre date
If debut <> vbNullString Then .Range.AutoFilter field:=1, Criteria1:=debut, Operator:=xlAnd, Criteria2:=fin
'filtre element
If element <> vbNullString Then .Range.AutoFilter field:=2, Criteria1:=element
'filtre mois
If mois <> vbNullString Then .Range.AutoFilter field:=9, Criteria1:=mois
End With