Using the Do...Until Loop with a Condition at the Bottom of the Loop : Do Until « Language Basics « VBA / Excel / Access / Word






Using the Do...Until Loop with a Condition at the Bottom of the Loop

 
   Sub PrintNumbers() 
       Dim num As Integer 

       num = 0 
       Do 
           num = num + 1 
           Debug.Print num 
       Loop Until num = 27 
   End Sub 

 








Related examples in the same category

1.Do Loop Until
2.Using the Do...Until Loop
3.Exit Do Until Loop
4.Use Do Until with if statement