Illegal reference to array or list: <array or list name>

You used the name of an array or list in an illegal context. Illegal contexts include the following, where X is the name of an array or list:

  • As the target of an assignment or Set statement, as in X = Y, Set X = Y, Set X = New Y, Set X = Bind Y
  • As the target of a Delete statement, as in Delete X
  • As though it were an object reference variable or a variable of a user-defined data type and you were referring to one of its members, as in X.Y

Remove the illegal use of the array or list.