Programming-Idioms

History of Idiom 78 > diff from v57 to v58

Edit summary for version 58 :
New VB implementation by user [DRodge]
↷

Version 57

2017-05-13, 15:57:40

Version 58

2017-06-06, 13:42:26

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Extra Keywords
until
Extra Keywords
until
Code
Sub someThing() 
Dim loop_ctr As Integer  
loop_ctr = 100  
Do  
 MsgBox "Loop Counter : " & loop_ctr  
 loop_ctr = loop_ctr + 1  
 Loop While loop_ctr < 10  
End Sub 
Origin
http://www.exceltrick.com/formulas_macros/vba-loops-for-while-until-loops/