Performing a Do Until with an If statement until a certain value is reached

前端 未结 1 1503
梦毁少年i
梦毁少年i 2021-01-28 14:17

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

相关标签:
1条回答
  • 2021-01-28 15:11

    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.

    0 讨论(0)
提交回复
热议问题