Using an multi-dimensional array, you're only allowed to change the last dimension!
Allowed:
VB Code:
  1. Dim MyArray() As Integer
  2. .
  3. .
  4. ReDim MyArray(1, 10)
  5. .
  6. .
  7. ReDim Preserve MyArray(1,UBound(MyArray, 1) + 1)
NOT Allowed:
VB Code:
  1. Dim MyArray() As Integer
  2. .
  3. .
  4. ReDim MyArray(1, 10)
  5. .
  6. .
  7. ReDim Preserve MyArray(UBound(MyArray, 1) + 1,10)