This documentation is archived and is not being maintained.

For

The For keyword introduces a loop that is iterated with different values of a loop variable.

The For keyword is used in these contexts:

For...Next Statements

For Each...Next Statements

See Also

Visual Basic Language Keywords

Show: