Sub test()
With ActiveSheet.ListObjects("Tableau1").Range
.AutoFilter Field:=1, Criteria1:="cefrez"
End With
MsgBox IsEmpty_After_Filter(Range("Tableau1[#all]"), "Total")
End Sub
Sub test2()
With ActiveSheet.ListObjects("Tableau2").Range
.AutoFilter Field:=1, Criteria1:="cefrez"
End With
MsgBox IsEmpty_After_Filter(Range("Tableau2[#all]"), "Total")
End Sub
Function IsEmpty_After_Filter(rng As Range, title$)
Dim t&
With rng
t = Abs(rng.ListObject.ShowTotals)
IsEmpty_After_Filter = Not .Columns(1).SpecialCells(xlVisible).Cells.Count - t > 1
End With
End Function