شرح وافي
اخرج الدرر
جزاكم الله خيرا
وهذا كود آخر للاستاذ خبور نرجو شرح كلماته
Sub ترحيل_بشرط()
LastRow_1 = Cells(Rows.Count, "B").End(xlUp).Row
Range("B9:N" & LastRow_1).ClearContents
With Sheets("Sheet1")
S = 9
LastRow_2 = .Cells(.Rows.Count, "B").End(xlUp).Row
Application.ScreenUpdating = False
For QQ = 8 To LastRow_2
If .Cells(QQ, 2).Value = [C5] Then
.Cells(QQ, 2).Range("A1:N1").Copy
Cells(S, 2).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
S = S + 1
End If
Next
End With
Application.CutCopyMode = True
End Sub