Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1000 Bytes

for-each-can-only-iterate-over-a-collection-object-or-an-array.md

File metadata and controls

23 lines (14 loc) · 1000 Bytes
title keywords f1_keywords ms.assetid ms.date ms.localizationpriority
For Each can only iterate over a collection object or an array
vblr6.chm1011172
vblr6.chm1011172
0defd9d4-4775-c5dd-1212-951016efe997
06/08/2017
medium

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:

  • You specified an object that isn't a collection or array as the group part of the For Each syntax. Check the spelling of the item over which you want to iterate to make sure it corresponds to a collection or array in scope in this part of your code.

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

[!includeSupport and feedback]