Possible causes:
You attempted to change the dimensions of a static array with a ReDim statementonly dynamic arrays can be redimensioned. To define a dynamic array, use a Dim, Global, or Static statement with empty parentheses.
An Option Base statement occurs after dimensions have been set.