Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Nested loops are terminated with a single Next statement that specifies more loop variables than there are loops in the nest, as in the following example:
For I = 1 To 10
For J = 1 To 5
' ...
Next J, I, K ' Next J, I is valid, but there is no loop on K.
Error ID: BC32037
To correct this error
Ensure that the Next statement specifies all the nested loop variables in the reverse order of loop initiation.
Remove any extraneous variables from the Next statement.