You can also try:
Sub TransferInvetory()
Dim r As Long, endRow As Long, pasteRowIndex As Long
endRow = Range("A" & Rows.Count).End(xlUp).Row + 1
pasteRowIndex = 1
For r = 1 To endRow 'Loop through sheet1 and search for your criteria
If Cells(r, Columns("L").Column).Value <= Cells(r, Columns("M").Column).Value Then 'Found
'Copy the current row
Rows(r).Select
Selection.Cut
'Switch to the sheet where you want to paste it & paste
Sheets(3).Select
Rows(Range("A" & Rows.Count).End(xlUp).Row + 1).Select
ActiveSheet.Paste
'Next time you find a match, it will be pasted in a new row
pasteRowIndex = pasteRowIndex + 1
'Switch back to your table Delete the row if found (Disabled by default)
Sheets(1).Select
'Rows(r).Delete
'Continue to search for your criteria
End If
Next r
MsgBox "Complete!"
End Sub
Bookmarks