Error 6

Improper FOR/NEXT Matching
 
Either FOR...NEXT loops overlap or a FOR or NEXT statement is missing.