Loop
statement that changes a variable value. The loop ends when the
variable is greater than the end value if Step is positive or less
than the end value if Step is negative. Step may be omitted in
which case the step value is 1.
Syntax:
For variable = Value To Value [Step Value]
Example:
For i
= 10 To 0 Step -1
Msgbox
(i)
Next
Result:
It will display a countdown from 10 to 0