View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
John Jost John Jost is offline
external usenet poster
 
Posts: 12
Default 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