Error message:  For loop not initialized (Error 92)


For loop counters must be initialized. This error has the following cause and solution:

  • You jumped into the middle of a For…Next loop. Remove the jump into the loop. Placing labels inside a For…Next loop isn’t recommended.

For example:

On Error gotoHere

For i = 2 to 10


Next i

i has not been initialized.  
For i to 10

Next i