07-26-2023, 08:34 PM
Description:
The Do Until loop repeats a block of code until a condition becomes true.
Example:
Sub ExampleDoUntilLoop()
Dim i As Integer
i = 1
Do Until i > 5
MsgBox "Iteration: " & i
i = i + 1
Loop
End Sub
The Do Until loop repeats a block of code until a condition becomes true.
Example:
Sub ExampleDoUntilLoop()
Dim i As Integer
i = 1
Do Until i > 5
MsgBox "Iteration: " & i
i = i + 1
Loop
End Sub