Dear experts.
I am trying to create a number generator over a range of cells and being new to vba the only way I can think of doing it is using loops and refering to each cell. Hopefully you can help. Here is the detail:
Create a table in excel of dimensions x and y, with x and y being variable.
Create a macro that can vary the each cell value in the table between range 0 to n
and run through all possible combinations of values in the table.
the ranges for each column maybe different.
Any ideas? As mentioned, my initial thought is to do this using loops and refering to each cell. I don't yet know how to do this for a range.
Kuda
I am trying to create a number generator over a range of cells and being new to vba the only way I can think of doing it is using loops and refering to each cell. Hopefully you can help. Here is the detail:
Create a table in excel of dimensions x and y, with x and y being variable.
Create a macro that can vary the each cell value in the table between range 0 to n
and run through all possible combinations of values in the table.
the ranges for each column maybe different.
Any ideas? As mentioned, my initial thought is to do this using loops and refering to each cell. I don't yet know how to do this for a range.
Kuda