بالاذن من الاستاذ Lionheart
بنفس الطريقة
Sub test1()
Dim a
Dim r As Range
Dim frA
Dim x&
With Sheets(1)
a = Range(.Cells(2, 1), .Cells(2, 1).End(xlDown)).Cells
End With
x = 1
With Sheets("ÇáÌÏæá")
Set r = Range("B:B").Find("ÇáÑÞã", , , , 1)
frA = r.Address
If Not r Is Nothing Then
Do
r.Offset(1).Resize(10) = Application.IfError(Application.Index(a, Evaluate("row(" & x & ":" & x + 10 & ")"), 1), "")
x = x + 10
Set r = .Range("B:B").FindNext(r)
Loop Until frA = r.Address
End If
End With
End Sub
وخيار آخر يعتمد على عدد الاسطر وافراغات التي يجب أن تكون متساوية في كل الشيت
Sub test2()
Dim a
Dim r As Range
Dim frA
Dim x&, i&, ii&
With Sheets(1)
a = Range(.Cells(2, 1), .Cells(2, 1).End(xlDown)).Cells
End With
x = 1
With Sheets("الجدول")
For i = 1 To UBound(a) Step 10
.Cells(4 + ii * 20, 2).Select
.Cells(4 + ii * 20, 2).Resize(10) = Application.IfError(Application.Index(a, Evaluate("row(" & x & ":" & x + 10 & ")"), 1), "")
x = x + 10
ii = ii + 1
Next
End With
End Sub
المرفق مع الخيارين
sabah.xlsm