Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have the following simple loop where I want "i' to go from 1 to 3. Sub test() For i = 1 To 3 Debug.Print "Inside of the loop"; i Next Debug.Print "Outside of the loop"; i End Sub ==Out put is == Inside of the loop 1 Inside of the loop 2 Inside of the loop 3 Outside of the loop 4 It does what I expect inside the loop. But, as soon as loop is completed its value increases by one to 4 although I see no reason for this. Why? Anybody has any answer for this? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
For Each - loop doesn't work. | Excel Programming | |||
Excel Visual Basic - need help to create a loop of filenames | Excel Programming | |||
Excel formula similar to a loop in Basic? | Excel Worksheet Functions | |||
Would a loop work? | Excel Programming | |||
Why doesn't my loop work? | Excel Programming |