Excel Macro Tutorial : While Loop and Do While Loop in Excel VBA

In previous Article, we had seen about For Next Loop. In this article we are going to see about While and Do While Loop. While Loop Do...While Loop While Loop: Syntax: While [condition] [statements] ............ [statements] Wend Example: Let's take the same example what we discussed in previous Article with For..Next Loop.. Calculate the Sum of all Numbers from 1 [...]