To stop the code, you don't use an "end sub" - that simply indicates thebottom of the subroutine.You can "exit sub" to leave the subroutine, or you can "end" to stop yourcode completely.