Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
exit for next loop
Is there a command to "Exit" a for next loop ?
Thanks in advance David Values = False Dim ofcells As Range For Each ofcells In Range("myrange") If ofcells.Value < 0 Then Values = True Can I exit loop from here End If Next to carry on from here |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
exit for next loop
I think it is "exit for"
"David Henderson" wrote: Is there a command to "Exit" a for next loop ? Thanks in advance David Values = False Dim ofcells As Range For Each ofcells In Range("myrange") If ofcells.Value < 0 Then Values = True Can I exit loop from here End If Next to carry on from here |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
exit for next loop
Surprise! "Exit For" is the way to exit a FOR... statement group.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Exit to the beginning of For Next loop | Excel Discussion (Misc queries) | |||
Looping procedure calls userform; how to exit loop (via userform button)? | Excel Programming | |||
exit from a loop? | Excel Programming | |||
exit from a loop? | Excel Programming | |||
If a called sub exit, how to the caller exit right away? | Excel Programming |