Hi, im working with the CRJ Array class and im trying to change it into a 2D array, but when i change the AddItem function to a 2d array i get subscript out of range when i add the second item into the array and it flags up the ReDim Preserver line.
Code:
So its flagging up the Re-Dim Array saying Subscript Out Of Range, Any ideas on a way round this ?
Thanks
Kind Regards
Devon
Code:
Code:
Public Sub AddItem(ByVal Item As Variant, ArrDim As Variant) ReDim Preserve ItemArray(0 To lCount, 6) ItemArray(lCount, ArrDim) = Item CurrentIndex = lCount lCount = lCount + 1 End Sub
Thanks
Kind Regards
Devon
Comment