Hi all,
I want to generate sheets from the template in the attachment. There's an example of how I want it to be generate.
There are some rules like the amount of the sheets generate for each row is based on column P.
Column J will be copy to the carton number in each sheets it will be increment say J2 = A then when it copy to the first sheet it will be A1 then A2 , A3 and so on until the last sheet of each row.
Then column M and N have a lot of combinations.
Column M is the 'Size' column normal it will have something like this in the cell '4-16' this is how we record the sizes and if there's a '-' in between the numbers it will always be an increment of 2 until the last number so for this it will be 4,6,8,10,12,14,16 and this information will be apply on the size part of the template.
But sometime it will apply like this '4+8+10+12' if there's a size missing which in here is 6 then we always record it like this.
There are size like S-XL and S+L which is the same concept so for 'S-XL it will mean S,M,L,XL and S+L means S,L and this is how I want the size column and the rules to be generate to the templates.
For the 'breakdown' column N is quite similar to column M, here's an example of what values are like in column M '23+45+(76+23)+12'
Each '+' sign indicate a different size so let say 23 is size 6, 8,10,12
the brackets indicate that they are the same size. so 76 and 23 inside the bracket are both size 10
How the size apply will be depends on size column like it could be '4+12+14+16' in size column and column N can still be '23+45+(76+23)+12'
Then for the other columns for colour, PO and SKU it will need to be copy accordingly so let say if this row need to generate 4 templates it will need to be copy to the 4 templates as shown on my example in the attachment.
Can this be done in vba?
Thanks
Bookmarks