View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leo Heuser[_3_] Leo Heuser[_3_] is offline
external usenet poster
 
Posts: 109
Default Jump to the next count in a FOR Loop

Hi Hari

One way:

For I = 1 to 67

If ..... then
'Here I would like to go to the next Count in I and skip the
execution of code till -- Next I --

Else
'.....
' Some code
'Some code
'....
'...
End if

Next I


--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Hari Prasadh" skrev i en meddelelse
...
Hi,

I have

For I = 1 to 67

If ..... then
'Here I would like to go to the next Count in I and skip

the
execution of code till -- Next I --
End if
'.....
' Some code
'Some code
'....
'...

Next I


Please tell me what I should put inside the If statement so that I could
accomplish the above. I cannot use -- Exit For -- as I dont want to stop

the
executon of loop abruptly.

Thanks a lot,
Hari
India