For each "For" statement that you have, you must place a "Next" wherever you want the program to loop. For each "If" statement, the program requires an "End If" statement.