For loop not initialized (Error 92)

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

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 additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).