Share via


Next 

Terminates a loop that is iterated with different values of a loop variable, or specifies that execution should continue with the statement following the statement that generated an error.

Remarks

The Next keyword can be used in these contexts:

For...Next Statement

For Each...Next Statement

On Error Statement

Resume Statement

See Also

Reference

Visual Basic Language Keywords