Is there an easy way to split an array into 2 smaller arrays.
For example:
For example:
FullArray(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
Split this array into 2 arrays with first array containing the first 10 items and the second array containing the remaining items.
SizePart1 = 10
SizePart2 = UBound(FullArray) - SizePart1
The 2 new arrays would be like this;
ArrayPart1(1,2,3,4,5,6,7,8,9,10)
ArrayPArt2(11,12,13,14,15)
All arrays are one dimensional and contain only numbers. They are VBA arrays, not Excel columns.Split this array into 2 arrays with first array containing the first 10 items and the second array containing the remaining items.
SizePart1 = 10
SizePart2 = UBound(FullArray) - SizePart1
The 2 new arrays would be like this;
ArrayPart1(1,2,3,4,5,6,7,8,9,10)
ArrayPArt2(11,12,13,14,15)