Statistician
MIS
Does anyone know how to move data from a 3-dimensional array into a 2-dimensional array using VBA in Excel?
I'd like to select one dimension and hold it constant and then simply transfer data relating to the other 2 dimensions across into a new 2-D array.
Eg., Array1(Colour,Size,Cost) and Array2(Size,Cost)
I simply want to select a colour from Array1 and copy the corresponding size and cost elements into Array2.
Other than looping through using a for..next loop is there a quicker or simpler alternative?
Cheers
I'd like to select one dimension and hold it constant and then simply transfer data relating to the other 2 dimensions across into a new 2-D array.
Eg., Array1(Colour,Size,Cost) and Array2(Size,Cost)
I simply want to select a colour from Array1 and copy the corresponding size and cost elements into Array2.
Other than looping through using a for..next loop is there a quicker or simpler alternative?
Cheers