Sub Filtre()
Dim P As Range, nlig&
Application.ScreenUpdating = False
[F2] = "=OR(B2=""A"",B2=""B"")*(D2>DATEVALUE(""28/02/2022""))" 'critère
With [A1].CurrentRegion
.AdvancedFilter xlFilterCopy, [F1:F2], [Z1] 'filtre avancé copié en Z1
[F2] = ""
Set P = [Z1].CurrentRegion
nlig = P.Rows.Count
P.Copy .Cells(1)
P.Clear
If .Rows.Count > nlig Then .Rows(nlig + 1 & ":" & .Rows.Count).Delete xlUp
End With
End Sub