Sub Test()
Dim crit_JOUR$
Jours = Array("LUNDI", "MARDI", "MERCREDI", "JEUDI", "VENDREDI")
crit_JOUR = Jours(InputBox("Choisir un jour de la semaine" & vbCr & " (de 1 à 5) ", "Choix jour", 1) - 1)
FILTRAGE crit_JOUR, "AB"
End Sub
Private Sub FILTRAGE(ByVal Jour As String, ByVal Agent As String)
ActiveSheet.Unprotect
Application.ScreenUpdating = False
Range("BV4").Formula = "=AND(A4=" & Chr(34) & Jour & Chr(34) & ",C4=" & Chr(34) & Agent & Chr(34) & ",D4<>""remplaçant"")"
Range("A3:D497").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=Range("BV3:BV4"), Unique:=False
End Sub