Export (0) Print
Expand All


The Next keyword either 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.

The Next keyword is used in these contexts:

For...Next Statements

For Each...Next Statements

On Error Statement

Resume Statement

See Also

Visual Basic Language Keywords

© 2014 Microsoft