تم حل المشكله الثانيه
باضافه Else الي الكود
Sub ßÔÝ_ÍÓÇÈ()
Dim mo As String
Dim Lr As Long, i As Long, Ln As Long, Lo As Long
Dim r As Integer
mo = Range("d10").Value
mn = Range("e10").Value
MM = Range("f10").Value
Application.ScreenUpdating = False
With ActiveSheet
Lr = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = 2 To 6
If mo = CStr(.Cells(i, "f")) Then
Cells(Lr + 1, "a").Value = .Cells(i, "a").Value
Cells(Lr + 1, "b").Value = .Cells(i, "e").Value
Cells(Lr + 1, "d").Value = .Cells(i, "b").Value
Else
End If
If mn = CStr(.Cells(i, "f")) Then
Cells(Lr + 2, "a").Value = .Cells(i, "a").Value
Cells(Lr + 2, "b").Value = .Cells(i, "e").Value
Cells(Lr + 2, "e").Value = .Cells(i, "b").Value
Else
End If
If MM = CStr(.Cells(i, "f")) Then
Cells(Lr + 3, "a").Value = .Cells(i, "a").Value
Cells(Lr + 3, "b").Value = .Cells(i, "e").Value
Cells(Lr + 3, "f").Value = .Cells(i, "b").Value
Else
End If
Next
End With
End Sub