Illegal REDIM on: <name>

You used the ReDim statement on a name that is not the name of a dynamic array. For example:

Dim anArray(1 To 2) As Integer
ReDim anArray(1 To 3)           ' Illegal because anArray was previously
                                ' declared as a fixed array.

Either replace the name in the ReDim statement with the name of a dynamic array, or remove the statement.