We receiving orders for our products with an arrival date. I need to back up the date a certain number of transit days (depending on customer location) and then back up to the day of the week that customer truck leaves.
For example, Say we get an order for a part due to arrive at the customer on 7/19/11. Say this customer should have 3 days transit time and the truck only leaves on Mondays. I actually have to ship this on 7/11/11.
I've got lots of customers that will each have their own rules and have to compare them against a huge list of products. I'm planning to use a macro to loop through each row and calculate the new date. This'll save use a few hours per week in manpower plus help ensure our shipping is on time.
Any suggestions?
I've written lots of macros before but never have I dealt with dates.
For example, Say we get an order for a part due to arrive at the customer on 7/19/11. Say this customer should have 3 days transit time and the truck only leaves on Mondays. I actually have to ship this on 7/11/11.
I've got lots of customers that will each have their own rules and have to compare them against a huge list of products. I'm planning to use a macro to loop through each row and calculate the new date. This'll save use a few hours per week in manpower plus help ensure our shipping is on time.
Any suggestions?
I've written lots of macros before but never have I dealt with dates.