Private Sub Worksheet_Change(ByVal Target As Range)
'
Dim DateDeb As Long, DateFin As Long
If Target.Address = "$A$2" Then
Sheets("copie").Range("A5:K16").Clear
DateDeb = DateSerial(Sheets("copie").Range("A2").Value, 1, 1)
DateFin = DateSerial(Sheets("copie").Range("A2").Value, 12, 31)
Sheets("base données").Range("A1:K37").AutoFilter Field:=1, Criteria1:=">=" & DateDeb, Operator:=xlAnd, Criteria2:="<=" & DateFin
On Error Resume Next
Sheets("base données").Range("A2:A37,I2:K37").SpecialCells(xlCellTypeVisible).Copy Destination:=Sheets("copie").Range("A5")
Sheets("base données").Range("E2:G37").SpecialCells(xlCellTypeVisible).Copy Destination:=Sheets("copie").Range("E5")
Sheets("base données").Range("A1:K37").AutoFilter
End If
End Sub