Rhodie72
Well-known Member
- Joined
- Apr 18, 2016
- Messages
- 633
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- 2010
- 2007
- 2003 or older
- Platform
- Windows
- Mobile
I currently have this code which is giving me an headache. I can't remember how to resize the array in VBA dynamically. Would appreciate any help in this regard please.
It's part of a series of loops and the n increments sequentially to the next highest number.
I can see this is going to be one of Homer's "Doh!" moments when the answer comes, but it's late and I'm tired.
I do need to preserve the data already stored in the array for future use too.
Code:
ReDim Preserve Directories(0 To UBound(Directories(n)))
It's part of a series of loops and the n increments sequentially to the next highest number.
I can see this is going to be one of Homer's "Doh!" moments when the answer comes, but it's late and I'm tired.
I do need to preserve the data already stored in the array for future use too.
Last edited: