Hello Excel Forum,
I have a spreadsheet with multiple columns. Column M states the number of boxes required to be despatched per that product. Column AC states the maximum boxes that can be stacked on a pallet. I am unsuccessfully trying to create code that do the following;
If value in column M exceeds value in column AC amend the value in column M to the value in column AC and then create a duplicate line below for the remaining boxes.
Repeat process until column M value less than or equal to column AC value. Loop through all part codes.
As an example...
Original file...
Line No. Column B Column M Column AC
Part Boxes Ordered Max Pallet Qty
1 ABC123 22 8
File post VBA...
Line No. Column B Column M Column AC
Part Boxes Ordered Max Pallet Qty
1 ABC123 8 8
2 ABC123 8 8
3 ABC123 6 8
Hopefully my ramblings above make sense, any help would be massively appreciated!
Carl
Bookmarks