beartooth91
Board Regular
- Joined
- Dec 15, 2024
- Messages
- 64
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Not sure what I'm doing wrong here, its only pasting the last entry. There should be 6 lines pasted.
VBA Code:
Sub ForEa_Test()
'
With Worksheets("Combined")
Dim Lrw As Long
Lrw = .Cells(Rows.Count, "B").End(xlUp).Row
For Each cell In .Range("B8:N" & Lrw)
If cell.Value = "DI" Then
cell.EntireRow.Copy Destination:=Sheets("New2").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)
End If
Next cell
End With
End Sub