Freddie Mac wrote:
> well the sub is not the whole program. I have e.g. a main sub that calls
> other subs. In these subs I sometimes call the sub that I want to use for
> exiting the program. If I write exit sub I just exit the sub that is used for
> closing the program and I will return to where ever I was in the code. Is
> there no way of solving the problem?
>


Hi Freddie

Check for the stop criteria in the parent routine.

Regards

Steve