For Next pada Visual Basic biasa digunakan sebagai statemen perulangan.
Syntax dasar
For counter = start To end [ Step step ]
( Code to excute )
Next [ counter ]
Contoh 1:
Dim i As integer
For i = 0 to 10
msgbox "nilai i = " & i
next i
Contoh 2 :
Dim i As integer
For i = 0 To 10 step 2
msgbox "Nilai i = "& i
Next i