#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default exit while?

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




  #2   Report Post  
Posted to microsoft.public.excel.programming
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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exit when its a Mac Tushar Mehta Excel Programming 0 September 21st 04 03:41 PM
Exit when its a Mac jose luis Excel Programming 0 September 20th 04 10:47 PM
exit sub mike allen[_2_] Excel Programming 4 August 6th 04 05:39 PM
If a called sub exit, how to the caller exit right away? luvgreen[_4_] Excel Programming 4 February 24th 04 05:06 PM
Exit Sub? Eva Shanley[_2_] Excel Programming 3 December 24th 03 02:15 PM


All times are GMT +1. The time now is 04:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"