Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Infinite FOR loop issue
#1
Not Solved Smile 
Hi all,

How to set dynamic end value in 'For...Next' loop?

I am using the following script, but it ends once 'i' reaches '5'

Code:
Dim i,j
j = 5
For i=1 To j
Msgbox ("I value = "&i&vbcrlf&"J value = "&j)
j=j+1
next
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,640 05-29-2014, 01:22 PM
Last Post: basanth27
  Exit Do loop shipu 1 4,733 12-20-2013, 06:33 AM
Last Post: basanth27
  Do Until loop returning failure mitch 0 3,462 05-27-2011, 12:20 AM
Last Post: mitch
  If Then statement inside For loop Mala 3 3,958 02-23-2011, 10:13 PM
Last Post: basanth27
  For loop after couple of If then else statements Mala 4 4,895 02-16-2011, 06:37 AM
Last Post: Mala

Forum Jump:


Users browsing this thread: 1 Guest(s)