Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50061

Random setup configuration code for vba

$
0
0
Hi All,

I have a configuration problem for which i would like to know how I can pick a random setup, I will try to explain my problem the best I can and hope that somebody can help me, because I really have no clue on how to do this.

So I need to configure an production line with 4 stations in a sequence. In every station I have the choice of a number of different types of machines ( for example station 1, i can choose machine of type 1, 2 or 3, station 2 type 1 or 2, etc. ) and also I can choose a number of machines at each station (which I know will probably always be lower than 10). To give an example of a configuration, it would be something like this:

Station 1: 2x Machine type 1
Station 2: 5x Machine type 2
Station 3: 3x Machine type 4
Station 4: 7x Machine type 2

How do I make VBA pick a random setup? What so for example get a table like this at random;

station machines type
1 2 1
2 5 2
3 3 4
4 7 2





Thanks in advance for taking a look at my problem!
Bram

Viewing all articles
Browse latest Browse all 50061

Trending Articles