View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
cousinexcel cousinexcel is offline
external usenet poster
 
Posts: 26
Default Exit to the beginning of For Next loop

Many thanks.
CousinExcel


"Gary''s Student" wrote:

Sub demo()
For i = 1 To 5
v = Cells(i, 1).Value
If v 10 Then
Cells(i, 2).Value = "Big"
GoTo skiput
End If
Cells(i, 2).Value = "Little"
skiput:
Next i
End Sub

--
Gary''s Student - gsnu201003


"CousinExcel" wrote:

Hi,

For i=1 to 5
if .... then
....
....
GO TO THE BEGINNING OF FOR NEXT LOOP
end if
....
....
next i

What should I say to mean "GO TO THE BEGINNING OF FOR NEXT LOOP" above (if I
can).

Thanks and regards,

Cousin Excel