HSalles
Jan 18, 2023Copper Contributor
Create a product tree using vba
Hi,
I need to create a product tree and I would like to do this using vba, is that possible? I already have all the components so I just need to create relations between them. Please look at the exemple below.
To manufacture the "Bateria PICINW interna com conector" I need 4 components. I want to create the second table with the collum "Production capacity" which is the stock of "Bateria PICINW interna com conector" plus the minimum stock between the 4 components.
Code | Description | Stock |
4 | BATERIA PICNIW INTERNA COM CONECTOR | 56 |
4.1 | ALOJAMENTO MOLEX 2P CLIKMATE PLUG | 478 |
4.2 | TERMINAL MOLEX CLIKMATE AWG 26-28 | 991 |
4.3 | BATERIA INTERNA 3,7V 240 MAH | 300 |
5 | LAMINA INSTRUMENTADA PICNIW | 175 |
Code | Description | Production capacity |
4 | BATERIA PICNIW INTERNA COM CONECTOR | 56 + minimum(478,991,300) |
5 | LAMINA INSTRUMENTADA PICNIW | 175 |
My first ideia was to create some loops and insert the values in a array so I could chose the minimum but I'm having some dificuties, could someone help me please?