Sub Choisir()
Dim n As Byte, x$
For n = 0 To 1 '2 passages
x = ""
Do While Not (x Like "#:##" Or x Like "##:##") Or Not IsDate(x)
x = InputBox("Heure de " & IIf(n, "fin", "début") & " au format h:mm :", "Choisir", x)
If x = "" Then Exit Sub
Loop
ThisWorkbook.Names.Add IIf(n, "Fin", "Début"), CDate(x) 'noms définis
Next
[D2] = "=(ROUND(MOD(A2,1),7)>=ROUND(Début,7))*(ROUND(MOD(A2,1),7)<=ROUND(Fin,7))" 'critère
[A1].CurrentRegion.AdvancedFilter xlFilterCopy, [D1:D2], [E1:F1]
End Sub