mountainman88
Board Regular
- Joined
- Jun 22, 2019
- Messages
- 109
- Office Version
- 2016
- Platform
- Windows
So I have an array called Setup declared as a variant.
i pass a range to the array eg A1:E7 and Setup becomes an array like this
setup (1 to 7, 1 to 5)
i want add another dimension (1 to 3) but preserve the range data already in the array. What’s the best way to do this?
I know I can’t ReDim and add a dimension. So I try to declare a new array to copy the old Setup array to using a loop, but the dimensions are based on a variable range and you can’t declare an array with variables?
thanks this forum is awesome
i pass a range to the array eg A1:E7 and Setup becomes an array like this
setup (1 to 7, 1 to 5)
i want add another dimension (1 to 3) but preserve the range data already in the array. What’s the best way to do this?
I know I can’t ReDim and add a dimension. So I try to declare a new array to copy the old Setup array to using a loop, but the dimensions are based on a variable range and you can’t declare an array with variables?
thanks this forum is awesome