I am trying to write VBA code where I use the dim
command on an unknown number of matrices. The number of these matrices is an input. That is...
Dim mat1() as variant, mat2() as variant, mat3() as variant...
But it could end at mat2 or go to mat300 depending on what the user inputs (actually it is the number of columns in the input matrix).
So, for instance. If I am passed
8 2
12 7
I need to pass two matrices along.
8
12
and
2
7
It seems that there must be a way to do this.
thanks