Thread: exit while?
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rob van Gelder[_4_] Rob van Gelder[_4_] is offline
external usenet poster
 
Posts: 1,236
Default exit while?

There is no "exit from while" equivalent statement.

I suggest you use Do / Loop instead. You can have conditions at the Do end
or Loop end and use Exit Do

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Steven Deng" wrote in message
news:8yUid.132683$%k.24801@pd7tw2no...
Hello, I realize that there are "exit do", "exit for" in vba, is there a
particular reason that vba does not support "exit while"? Seems that i
will
have to "goto" instead.

Sincerely,
Steven Deng