I recently got introduced to coding with filtering which if designed correctly can do most of the work certain looping codes do and would result in faster processing.
So here is a code i use with looping:
This code takes forever since there is a lot of information the code needs to loop through.Please Login or Register to view this content.
Since i only got introduced to filtering i don't have any idea on how to convert the above code to work via filter.
These are the steps in the code above written out:
1) The code enters sheets "Pending Orders"
*might be helpful to note that the information on "Pending Orders" starts from row 5 and row 4 is the header, also the part of the code that i need copied is every odd row but vital information pertaining to every odd row exists on the row beneath it which is an even row.
2) The code finds the word "ORDER CANCELLED" which will exist on only an even row
3) If the code finds "ORDER CANCELLED" it will then move to the odd row right above it and copy this:
4) Next the code enters sheets "Report Center" and pastes the copied information into row 5 and so on, meaning it copies the first loop match into row 5 and the 2nd loop match into row 6 and the 3rd into row 7 and so on and so forth.Please Login or Register to view this content.
Any help on making this work with filtering would be greatly appreciated.
Bookmarks