Invalid Next control variable reference

   

The numeric variable in the Next part of a For...Next loop must match the variable in the For part. This error has the following cause and solution:

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).