Some Questions to Consider…
Why does iterateVar have the initial value of 1?
Why does the loop end?
How many times does the loop execute?
Private Sub Form_Click()
Dim iterateVar As Integer
iterateVar = 0
Do While iterateVar < 10
iterateVar = iterateVar + 1
MsgBox (“iterateVar is” & iterateVar)
Loop
End Sub
Previous slide
Back to first slide
View graphic version