I've been hobbling over this for couple hours now with different varieties with no luck, but with the exact result funnily enough.
Here's a snippet of my latest attempt. It's a bit more involved than copy/paste overall, but this is the part I'm having trouble with.
For i = 1 To lastRow
' Check if the name in column E is "USED"
If sourceSheet.Cells(i, "E").Value = "USED" Then
' Copy the row and paste it as values in the next empty row in the target sheet
sourceSheet.Rows(i).Copy
targetSheet.Cells(targetSheet.Rows.Count, "A").End(xlUp).Offset(1).PasteSpecial xlPasteValues
End If
Next i
I can create the loop to copy any row(s) with a specific word from a specific sheet, but my intention that it continuously pastes each row on a different sheet starting with the next empty row. Currently what's happening is that it pastes over the exact same row it just did. I feel like I'm getting real brain fog after spending all this time, so any pointers are appreciated. Thank you!
Here's a snippet of my latest attempt. It's a bit more involved than copy/paste overall, but this is the part I'm having trouble with.
For i = 1 To lastRow
' Check if the name in column E is "USED"
If sourceSheet.Cells(i, "E").Value = "USED" Then
' Copy the row and paste it as values in the next empty row in the target sheet
sourceSheet.Rows(i).Copy
targetSheet.Cells(targetSheet.Rows.Count, "A").End(xlUp).Offset(1).PasteSpecial xlPasteValues
End If
Next i
I can create the loop to copy any row(s) with a specific word from a specific sheet, but my intention that it continuously pastes each row on a different sheet starting with the next empty row. Currently what's happening is that it pastes over the exact same row it just did. I feel like I'm getting real brain fog after spending all this time, so any pointers are appreciated. Thank you!