Excel VBA - Step Counter until target number reaches 0 -
i trying build step counter in vba can loop calculations until target number reaches 0, while counting vba iterations.
e.g
my target number = 120 have 6 steps = 5,12,15,5,5,5 want 120 run through each step in order, reducing each step (subtracting) i.e: 120,115,103,88,83,78 etc
the result want see how many times loop runs through each step before target number reaches 0, parallel/multiple loops.
the part stuck want have multiple loops can start @ different steps during initial loop.
e.g: after step 1, step 2 become 115, want new loop start @ step 1 @ 115 production line i.e: 120mins total, step 1 takes 5 mins, after 5 mins 1 unit moves step 2 , new unit moves step 1.
any great, current code not helpful, have rewritten same calculations run through reducing total number.
thanks
Comments
Post a Comment