Iteration

Iteration commands provide a structured method to repeat execution of certain portions of a procedure.

CommandDescription
For...Next statementLoops a fixed number of times while the counter is less than or equal to a specified value. Can be used with Until/While.
Loop...Repeat statementRepeats statements between the Loop and Repeat until some condition forces an exit. Loop…Repeat is frequently used with Until/While.