I am dealing with a large data sheet. I need code to subtract from a specific cell until the value is greater then a certain number. if that number isn\'t achieved I want it to
It's a bad practice to use While
, Until
, While...WEnd
.
Use unconditional Do...Loop
with full-featured condition check code and Exit Do
, which you can locate in any place of cycle, but not in beginning or end of it only.
-1? OK :)
MS F1: Tip The Do...Loop statement provides a more structured and flexible way to perform looping.
This "services" are for the lazy only. My denie of While
and Until
is the direct consequence of this statement exactly to achieve "structured and flexible", about which topick starter is asked for.