Last week's challenge is posted HERE!
OK, I have a problem... for you to solve!
We are selling bottles of wine - each of which has a unique ID since it's a limited vintage.
Customers can request their wine bottles be delivered in various different sizes of delivery box.
Customers order wine in ranges - from ID 1 to 25 for example.
Challenge: Build a macro that takes in order ranges, allows the user to input the box size, and outputs the order broken into the requested box sizes.
There are 3 sample outputs displayed to test the different box sizes:
- Box size of 6
- Box size of 12
- Box size of 96
The macro must check for, or prevent 3 specific error conditions:
- a null value for either the from or to value on an order range
- non-numeric values in the from & to values
- situations where the from ID is greater than the to ID
BONUS - Instead of using an interface tool to allow the user to set 6/12/96 box sizes, build a batch macro that will package all three scenarios at once!
DOUBLE BONUS - Complete this challenge whilst listening to some UB40