Having a problem with the loop and how to stop it at the correct place.

Printable View