03-28-2013, 10:37 AM
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'
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