CJBIRKIN
Drink!
- Local time
- Today, 16:30
- Joined
- May 10, 2002
- Messages
- 256
Hi
I'm trying to resize an array as i go through a loop.
This is how i have dimensioned the array
Dim ColData() As Variant
then to start the array (ColNow is an unknown value)
Find ColNow
then
ReDim ColData(ColNow,0)
then with each iteration of the loop ArrayInty is increased by 1
arrayinty = arrayinty+1
ReDim Preserve ColData(ColNow, ArrayInty)
Trouble is it doesn't want to resize the array using redim preserve i get the subscript out of range error.
Any help??
Cheers
Chris
I'm trying to resize an array as i go through a loop.
This is how i have dimensioned the array
Dim ColData() As Variant
then to start the array (ColNow is an unknown value)
Find ColNow
then
ReDim ColData(ColNow,0)
then with each iteration of the loop ArrayInty is increased by 1
arrayinty = arrayinty+1
ReDim Preserve ColData(ColNow, ArrayInty)
Trouble is it doesn't want to resize the array using redim preserve i get the subscript out of range error.
Any help??
Cheers
Chris