تفضل أخى
Application.ScreenUpdating = False
Set sh = Sheets("الشيكات المسددة")
LR = Cells(Rows.Count, 1).End(xlUp).Row
On Error Resume Next
For i = 2 To LR
If Cells(i, "E").Value <> "" And Cells(i, "E").Value = "نعم" Then
Range(Cells(i, "A"), Cells(i, "D")).Copy
sh.Range("A" & sh.Cells(Rows.Count, 1).End(xlUp).Row + 1).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Range(Cells(i, "A"), Cells(i, "E")).Delete Shift:=xlUp
i = i - 1
End If
Next i
Application.ScreenUpdating = True
MsgBox "تم الترحيل بنجاح"
Set sh = Nothing
End Sub
شيكات مسددة1.rar