السلام عليكم
انت تجعل السطر 6 من الصفحة الخلاصه فارغ
هنا الكود عدل ليتناسب مع مبتغاك
Sub trheelomar()
Dim y As Integer
Dim xx As Variant
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Sheets(2).Select
Range(Cells(6, 2), Cells(50, 29)).ClearContents
Sheets(1).Select
xx = Array("", "ËÇãÑ äÇÕÑ", "ÈÇåÑ ÇÍãÏ", "ÚÈÏ ÇáæåÇÈ ÇãÌÏ", "íæÓÝ ÍÓíä", "ßÇãá ãÍãÏ", "ãÍãÏ ÇÍãÏ", "ÑÇÝÊ Óáíã", "ÍÇãÏ íÇÓÑ", "ØÇáÈ ãÕØÝì")
For i = 11 To 48
For x = 1 To 10
If Cells(i, 23) = xx(x - 1) Then
Select Case Cells(i, 23)
Case Is = xx(1)
y = 2
Case Is = xx(2)
y = 5
Case Is = xx(3)
y = 8
Case Is = xx(4)
y = 11
Case Is = xx(5)
y = 14
Case Is = xx(6)
y = 17
Case Is = xx(7)
y = 20
Case Is = xx(8)
y = 23
Case Is = xx(9)
y = 26
End Select
yy = Sheets(2).Cells(Rows.Count, y).End(xlUp).Row + 1
If yy = 6 Then
yy = Sheets(2).Cells(Rows.Count, y).End(xlUp).Row + 2
End If
Sheets(2).Cells(yy, y) = Cells(i, 22)
Sheets(2).Cells(yy, y + 1) = Cells(i, 25)
Sheets(2).Cells(yy, y + 2) = Cells(i, 24)
End If
Next
Next
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub