اخي الكريم
تم تجربه الكود ويوجد بعض المشاكل
وهو يقوم بترحيل اخر عمليه لكل الكشوف حتي لو تم ترحيلها
وارجوا العمل علي الكود هذا
Sub REPORT_salim()
Application.ScreenUpdating = False
Dim My_name$
Dim SpecLr%
Dim sh As Worksheet: Set sh = Sheets("سندات القبض")
Dim k%, i%: k = Sheets.Count
Dim LrP%: LrP = sh.Cells(Rows.Count, "P").End(3).Row
If LrP = 1 Then LrP = 2
For i = 2 To k
My_name = sh.Cells(i, "P")
SpecLr = Sheets(My_name).Cells(Rows.Count, "c").End(3).Row + 1
With Sheets(My_name)
.Cells(SpecLr, 3) = sh.Cells(i, "B")
.Cells(SpecLr, 4) = sh.Cells(i, "D")
.Cells(SpecLr, 5) = sh.Cells(i, "e")
.Cells(SpecLr, 6) = sh.Cells(i, "f")
.Cells(SpecLr, 7) = sh.Cells(i, "h")
.Cells(SpecLr, 8) = sh.Cells(i, "i")
.Cells(SpecLr, 9) = sh.Cells(i, "g")
.Cells(SpecLr, 10) = sh.Cells(i, "k")
.Cells(SpecLr, 11) = sh.Cells(i, "n")
.Cells(SpecLr, 12) = sh.Cells(i, "l")
End With
Next
Application.ScreenUpdating = True
End Sub