Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default breaking out of a loop

how do I break out of a loop. As I loop down a column I'd like to
break out of the loop when I find data that meets a particular
condition.
thanks
chuck
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default breaking out of a loop

Chuck:
If using Do...Loop: Exit Do
If using For...Next: Exit For
They will take you to the 1st line of code following Loop or Next.
--
George Nicholson

Remove 'Junk' from return address.


"ChuckM" wrote in message
m...
how do I break out of a loop. As I loop down a column I'd like to
break out of the loop when I find data that meets a particular
condition.
thanks
chuck



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
Find loop doesn't loop JSnow Excel Discussion (Misc queries) 2 June 24th 09 08:28 PM
Breaking out of a loop in Excel 2007? Don Excel Discussion (Misc queries) 0 April 30th 09 06:49 PM
Breaking Links Guilherme Loretti Excel Discussion (Misc queries) 1 March 9th 05 09:56 PM
HELP!!!! Can't stop a loop (NOT an infinite loop) TBA[_2_] Excel Programming 3 December 14th 03 03:33 PM
breaking a loop Arkaad Excel Programming 2 September 23rd 03 01:28 PM


All times are GMT +1. The time now is 03:41 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"