OpenOffice Calc macro: For loop

Dim I 
For I = 1 To 10
  ' ...  Inner part of loop 
Next I
Dim I 
For I = 1 To 10 Step 0.5
  ' ... Inner part of loop 
Next I
Dim I 
For I = 10 To 1 Step -1
  ' ... Inner part of loop 
Next I
Dim I 
For I = 1 To 10 
  If I = 5 Then 
    Exit For
  End If
  ' ... Inner part of loop 
Next I

 

Reference:

 OO For loop




Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>