Do While loop in VBA - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: Excel VBA Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=48) +--- Thread: Do While loop in VBA (/showthread.php?tid=5215) |
Do While loop in VBA - Qomplainerz - 07-26-2023 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 |