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

gotoHere:

Next i

OR
i has not been initialized.  
For i to 10

Next i
[efb_likebox fanpage_url="https://www.facebook.com/vbamarket/" box_width="840" box_height=340"" responsive="1" show_faces="1" show_stream="1" hide_cover="1" small_header="0" hide_cta="0" locale="en_US"]