Inside the body of the while loop, you need to change the values of some variables to make the condition false or null at some points. The Do Until loop runs the given statements until the condition becomes True. The Major difference between these two syntax is explained below with an example. N = 0. Ubuntu Centos Debian Commands Series Donate. Unlike the Do While...Loop and While...Wend repetition structures, the Do Until... Loop structure tests a condition for falsity. Result when you click the command button on the sheet: Explanation: until i is higher than 6, Excel VBA places the value 20 into the cell at the intersection of row i and column 1 and increments i by 1. Example. In my example, 9 is never less than or equal to 5; and therefore, the condition will never become True.