Hallo Everybody
I got a small program to work out the optimum way to cut different lengths of rebar out off full lengths. Although the results are not bad and will not make a very big difference once you cut thousands of bars, the code could be better. I just do not know how to make it better.
I attach the workbook with the code and some sample data. The column with the red figures are the off cuts remaining.
With the current data as entered and calculated with method one ( Just press the Button with Method One one it) you will notice some off cut lengths remaining. The remaining off cuts are enough to cut another 48 pieces of 150mm length. If you now enter this extra data in the Yellow boxes marked ( (Enter the 150 in the Length box and the 48 in the number box.) and run the macro again you will notice that instead of using this off cuts it rather come up with a different cutting list and add some lengths to the required number of lengths
Does someone has better code or make suggestions as how to improve this code. Any advise or assistance will be greatly appreciated.
Regards