Search here for all the info you want in this Blog

For..next


For..next

Repeats a group of statements a specified number of times.


Syntax:

For counter = start To end [Step step]
    [statements]
    [Exit For]
    [statements]
Next

Example:

for i=10 to 0 step -1
msgbox i
next

No comments:

Post a Comment