For Each can only iterate over a collection object or an array

   

The For Each construct can only be used with collections and arrays. This error has the following cause and solution:

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).