وعليكم السلام ورحمة الله تعالى وبركاته
لست متأكدا مما تحاول فعله
جرب هدا
Sub test()
Dim wsSource As Worksheet, wsPass As Worksheet
Dim lastRow As Long, i As Long, passRow As Long, Rng As Range
Set wsSource = Sheets("Sheet1")
Set wsPass = Sheets("Sheet2")
Application.ScreenUpdating = False
lastRow = wsSource.Cells(wsSource.Rows.Count, "A").End(xlUp).Row
passRow = 4
For i = 3 To lastRow
If InStr(1, LCase(wsSource.Cells(i, "G").Value), "1/6") > 0 Then
wsPass.Cells(passRow, 1).Resize(1, 14).Value = wsSource.Cells(i, 1).Resize(1, 14).Value
wsPass.Cells(passRow, 1).Value = passRow - 3
wsPass.Cells(passRow, 1).NumberFormat = wsSource.Cells(i, 1).NumberFormat
passRow = passRow + 2
If Rng Is Nothing Then Set Rng = wsSource.Cells(i, 1).Resize(1, 14)
If Not Rng Is Nothing Then Set Rng = Union(Rng, wsSource.Cells(i, 1).Resize(1, 14))
End If
Next i
If Not Rng Is Nothing Then Rng.ClearContents
Application.ScreenUpdating = True
End Sub
لحدف الصفوف
If Not Rng Is Nothing Then
Rng.Delete Shift:=xlUp
End If