Mackeral
Board Regular
- Joined
- Mar 7, 2015
- Messages
- 249
- Office Version
- 365
- Platform
- Windows
Consider the following code:
At the end of the code you find I = 11 and Last = 21.
The implication of this is that once you set the Maximum for the loop, you can't change it.
So you have to use a Do While loop explicitly testing for the changed Maximum.
Code:
Last = 10
For I = 1 To Last
Last = Last + 1
Next I
The implication of this is that once you set the Maximum for the loop, you can't change it.
So you have to use a Do While loop explicitly testing for the changed Maximum.