Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You created a For...Next loop, but did not include the To keyword in the first line. The first line of a For...Next loop must include the To keyword. The following demonstrates the correct structure of a For...Next loop.
For counter = start To end [Step step]
[statements]
[Exit For]
[statements]
Next
To correct this error
- Make sure that the For...Next loop includes all the necessary parts.