The original code has varOut(i,1) >1 instead of long "if" line as seen. Here is the logic I am trying to incorporate:Please Login or Register to view this content.
Assume this simple table
OrderA Credit OrderA Invoice OrderB Credit OrderB Credit
I want to delete those duplicates that have credit and invoice pairings basically (order A only), and so here is the logic I am following:
If (OrderValue) And (Invoice) = (OrderValue) And (Credit) then Rows.Delete (Boolean test results in true only if both duplicates have invoice and credit pairing)
At the moment this is the error I am getting: subscript out of range.
WB.png
Bookmarks