I am comparing two arrays, if the first array contains a word in the second array then it should delete it from the first array.
For Each word In array1
If array2.Contains(word) Then
array1.Remove(word)
End If
Next
However when I debug it gives me the following error:
Collection was modified; enumeration operation may not execute.
because its updating the array while its trying to iterate through it