Kelvin Stott
Active Member
- Joined
- Oct 26, 2010
- Messages
- 338
I start with a 1D array, e.g., Array1(1 to 24), and would like to add a dimension and convert this to a 2D array, e.g., Array1(1 to 24, 1 to 36), while retaining the original values from the 1D array.
I tried the following, but the VBA routine exits with an error:
ReDim Preserve Array1(1 to 24, 1 to 36)
Is VBA unable to add extra dimensions to an existing array, or am I using the wrong method?
I tried the following, but the VBA routine exits with an error:
ReDim Preserve Array1(1 to 24, 1 to 36)
Is VBA unable to add extra dimensions to an existing array, or am I using the wrong method?
Last edited: