07-26-2023, 08:33 PM
Description:
The Do While loop repeats a block of code as long as a condition is true.
Example:
Sub ExampleDoWhileLoop()
Dim i As Integer
i = 1
Do While i <= 5
MsgBox "Iteration: " & i
i = i + 1
Loop
End Sub
The Do While loop repeats a block of code as long as a condition is true.
Example:
Sub ExampleDoWhileLoop()
Dim i As Integer
i = 1
Do While i <= 5
MsgBox "Iteration: " & i
i = i + 1
Loop
End Sub