New Text Document
New Text Document
isFirstSet = True
' Filter and copy data based on the "POS" criterion (column R <> 7)
CopyFilteredData wsComplete, wsDestinationPOS, 18, "<>7", destinationRowPOS
' Filter and copy data based on the "Cancelled" criterion (column E not
empty)
CopyFilteredData wsComplete, wsDestinationCancelled, 5, "<>",
destinationRowCancelled
End If
destinationRows.Add wsDestinationPOS.Cells(wsDestinationPOS.Rows.Count,
"A").End(xlUp).Row + 1, POS_SHEET
destinationRows.Add
wsDestinationCancelled.Cells(wsDestinationCancelled.Rows.Count, "A").End(xlUp).Row
+ 1, CANCELLED_SHEET
destinationRows.Add wsDestinationRCMITC.Cells(wsDestinationRCMITC.Rows.Count,
"A").End(xlUp).Row + 1, RCMITC_SHEET
destinationRows.Add
wsDestinationITC3BNotFiled.Cells(wsDestinationITC3BNotFiled.Rows.Count,
"A").End(xlUp).Row + 1, ITC3BNOTFILED_SHEET
destinationRows.Add wsDestinationB2B.Cells(wsDestinationB2B.Rows.Count,
"A").End(xlUp).Row + 1, B2B_SHEET
End Sub