Export (0) Print Expand All 15 out of 27 rated this helpful -
Rate this topic  For...Next Statement (Visual Basic)  Repeats a
group of statements a specified number of times.  For counter
[ As datatype ] = start To end [ Step step ]     [ statements ]
[ Exit For ]     [ statements ] Next [ counter ]  Required in
the For statement. Numeric variable. The control variable for
the loop.   Required if counter is not already declared. Data
type of counter.   Required. Numeric expression. The initial
value of counter.   Required. Numeric expression. The final
value of counter.   Optional. Numeric expression. The amount by
which counter is incremented each time through the loop.
Optional. One or more statements between For and Next that run
the specified number of times.  Exit For  Optional. Transfers
control out of the For loop.   Required. Terminates the
definition of the For loop.  Use a For...Next structure when you
want to repeat a set of statements a set number of times.  A
While...End While Statement (Vi