Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Infinite FOR loop issue
#2
Not Solved
if value reaches desired one, set Exit for.
Code:
For i=1 To j
Msgbox ("I value = "&i&vbcrlf&"J value = "&j)
j=j+1
if i=5 then
Exit for
End If
next
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
Infinite FOR loop issue - by Sivapratha - 03-28-2013, 10:37 AM
RE: Infinite FOR loop issue - by basanth27 - 03-28-2013, 03:26 PM
RE: Infinite FOR loop issue - by Sivapratha - 03-28-2013, 04:38 PM
RE: Infinite FOR loop issue - by basanth27 - 04-01-2013, 09:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Infinit loop Suma Parimal 1 2,798 05-29-2014, 01:22 PM
Last Post: basanth27
  Exit Do loop shipu 1 4,945 12-20-2013, 06:33 AM
Last Post: basanth27
  Do Until loop returning failure mitch 0 3,629 05-27-2011, 12:20 AM
Last Post: mitch
  If Then statement inside For loop Mala 3 4,145 02-23-2011, 10:13 PM
Last Post: basanth27
  For loop after couple of If then else statements Mala 4 5,247 02-16-2011, 06:37 AM
Last Post: Mala

Forum Jump:


Users browsing this thread: 3 Guest(s)