View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jamie Martin[_2_] Jamie Martin[_2_] is offline
external usenet poster
 
Posts: 25
Default two-condition loop

I am getting input from a user. After stage 1, he must verify what he has
entered. After stage 2, he must also verify what he's entered. However, if
either stage has errors, he needs to start again from the beginning. I
cannot do this (I tried):

Do
<instructions
Loop Until Condition1 = True
<instructions
Loop Until Condition2 = True

I could do what I want with a GoTo, but I understand that is poor practice
because it makes one's code unfollowable. Is there another structure I can
use that will be equivalent to the above?