Hi everybody!
Well, I have 2 problems using arrays in VBA. First imagine that I'm working with an array with more than 1 dimension, for example a 3x2x4 matrix test(2,1,3). Then I try to get some values out of it in two ways and there comes my 2 doubts:
1) How can I paste in the spreadsheet just a part of the the matrix test? Specifically, I'd like to equate Range("A1:B3")=test,:,2). I know that is possible to do looping but the matrix is really big so I'd like a more direct way in the way I tried above
2) How do I define/create another array that is a part of the matrix test? The idea for me would be something like: text2,=test,:,2). Again, I'm not looking for a looping code.
If I didn't make myself clear, please let me know.
Thanks!
Joao
Well, I have 2 problems using arrays in VBA. First imagine that I'm working with an array with more than 1 dimension, for example a 3x2x4 matrix test(2,1,3). Then I try to get some values out of it in two ways and there comes my 2 doubts:
1) How can I paste in the spreadsheet just a part of the the matrix test? Specifically, I'd like to equate Range("A1:B3")=test,:,2). I know that is possible to do looping but the matrix is really big so I'd like a more direct way in the way I tried above
2) How do I define/create another array that is a part of the matrix test? The idea for me would be something like: text2,=test,:,2). Again, I'm not looking for a looping code.
If I didn't make myself clear, please let me know.
Thanks!
Joao