For Each Statement
Syntax
Next [var]
Group
Description
Execute statements for each item in items.
Parameters |
Description |
This is the iteration variable. |
|
This is the collection of items to be done. |
See Also
Example
Sub Main
Dim Document As Object
For Each Document In App.Documents
Debug.Print Document.Title
Next Document
End Sub