02-16-2011, 12:24 AM
Hi
I am trying to use for loop in the middle of the code and is not working. The way I wrote is as follows
[statements to execute - 1st set]
For i = 1 To 3
[statements to execute - 2nd set]
Next
In the above situation the loop is not getting executed at all. 1st set of statements are executed 3 times.
So Changed it to
Dim i
[statements to execute - 1st set]
For i = 1 To 3
[statements to execute - 2nd set]
Next
Now there are 3 sets of "1st statement executes and then the 2nd statement is executed 3 times" (that means 3 times this path).
The 1st statement has 9 blocks of if then end if statements.
Can any one help me here pelase???
I am trying to use for loop in the middle of the code and is not working. The way I wrote is as follows
[statements to execute - 1st set]
For i = 1 To 3
[statements to execute - 2nd set]
Next
In the above situation the loop is not getting executed at all. 1st set of statements are executed 3 times.
So Changed it to
Dim i
[statements to execute - 1st set]
For i = 1 To 3
[statements to execute - 2nd set]
Next
Now there are 3 sets of "1st statement executes and then the 2nd statement is executed 3 times" (that means 3 times this path).
The 1st statement has 9 blocks of if then end if statements.
Can any one help me here pelase???