ForAll container invalid or modified

You tried to assign a value to the target in a ForAll block. For example:

Dim anArray(3) As Integer
Dim varV As Variant
varV = anArray
ForAll X In varV
  '...
  varV = 4      ' Illegal.
End ForAll

Remove the assignment statement.