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: