اخي ريان
جرب هذا الكود : يعمل عند ادخال تاريخ جديد في الخلية F5 .
ضعه في كود الصفحة Feuil2
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = [F5].Address Then
Abu_Ahmed
End If
End Sub
Sub Abu_Ahmed()
Dim I As Integer, MyDat1 As Date, MyDat2 As Date
Set Mysh = Sheets("Feuil2")
Set sh = Sheets("Feuil1")
xx = Mysh.Cells(Rows.Count, "a").End(xlUp).Row
If xx > 11 Then Mysh.Range("a12:ao" & xx).ClearContents
MyDat1 = Mysh.[E5]: MyDat2 = Mysh.[F5]
For I = 2 To sh.Cells(Rows.Count, "a").End(xlUp).Row
If sh.Cells(I, 5) >= MyDat1 And sh.Cells(I, 5) <= MyDat2 Then
sh.Cells(I, 1).Resize(1, 41).Copy Mysh.Range("A" & Mysh.Cells(Rows.Count, "a").End(xlUp).Row + 1)
End If
Next
Set Mysh = Nothing
Set sh = Nothing
End Sub
تحياتي