I've encountered a a while...wend loop. I'm used to the Do While loop, so I was wondering what the differences were between these two loops.
I did some testing (code below) and both seem to give me the same results:
Sub test_loop_1()
Dim i As Integer
i = 1
Do While i < 10
Cells(i, 1) = i
i = i + 1
Loop
End Sub
Sub test_loop_2()
Dim i As Integer
i = 1
While i < 10
Cells(i, 1) = i
i = i + 1
Wend
End Sub
Exit While.