Changing For...Next index
The only danger that I can see is if the index gets set back, it could
create an infinite loop.
I have never experienced a problem just moving the index along its
step-path, even going beyond its loop limit.
It's like everything I guess, if you understand the implications, and know
the data, you can weigh up the risks.
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Alan Beban" wrote in message
...
I have seen it stated that it is undesirable, in a For...Next loop, e.g.,
For i = 1 to 10
'Do Something
Next
to change the index (i, in the above illustration) programatically.
1. Is this a commonly accepted taboo?
2. If so, why is it thought to be undesirable?
Thanks,
Alan Beban
|