#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default break?

What's VBA's break keyword? (like in java, break jumps out of the current
loop).

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default break?

exit sub, exit for, exit do, ...

"vivmaha" wrote:

What's VBA's break keyword? (like in java, break jumps out of the current
loop).

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default break?

Goto can also be used, but use it wisely, or you get spaghetti-code


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music
:

"vivmaha" wrote:

exit sub, exit for, exit do, ...

"vivmaha" wrote:

What's VBA's break keyword? (like in java, break jumps out of the current
loop).

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default break?

Yeah, i'll avoid goto.

Check what dijkstra had to say about it: http://www.acm.org/classics/oct95/

"Wigi" wrote:

Goto can also be used, but use it wisely, or you get spaghetti-code


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music
:

"vivmaha" wrote:

exit sub, exit for, exit do, ...

"vivmaha" wrote:

What's VBA's break keyword? (like in java, break jumps out of the current
loop).

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
Excel 2007 Page Break Adjustments causes a page break each cell BKaufman Excel Worksheet Functions 2 September 10th 10 05:02 AM
Break a link between workbooks when there is no "break" option FruitNLoops Excel Discussion (Misc queries) 2 January 31st 09 05:16 AM
Break cell into multiple lines by line break Chia Excel Discussion (Misc queries) 1 August 20th 06 06:37 AM
adding a new page break to an existing page break Edward Letendre Excel Discussion (Misc queries) 1 March 6th 05 09:29 AM
Can Not Get Macro to Break with CTRL-BREAK Break Me? Excel Programming 0 September 8th 04 03:15 AM


All times are GMT +1. The time now is 06:15 AM.

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

About Us

"It's about Microsoft Excel"