Moshazu wrote:
Thanks for the reply, Chris
That will work if the close was called in a non-nested method, but in
my case, the method that calls the close, is called from another
method, which will continue its code once the Exit Sub from the nested
method was called.
Anyway around this one?
If you can't easily change your call structure to be to return a value
that let's the call stack know it needs to stop process, you may try
creating your own "close form" exception. Throw the exception, catch it
in the up the line.
The better way would be to return false from your function and then
check it up the line, if it returns false, don't continue to process.
Chris