Do Loop Until : Do Until « Language Basics « VBA / Excel / Access / Word






Do Loop Until

 
Sub cmdDoUntil()
   Dim intValue As Integer
   intValue = 10

   Do Until intValue = 35

      intValue = intValue + 1
    Loop
End Sub

 








Related examples in the same category

1.Using the Do...Until Loop
2.Exit Do Until Loop
3.Using the Do...Until Loop with a Condition at the Bottom of the Loop
4.Use Do Until with if statement