Im tring to find a ways how to end a running script when encountering an error which is handeled by a sub procedure in a library file which will log the error and then goes 'back' to previous window.
As the script is still running for another window it just can't execute it and ends it all.
So is there a way to end the script in a sub procedure?
At point where you want to come out of procedure, use the statement "Exit Sub". This will bring the control out of procedure.
Just try this.
A highly advanced bug is indistinguishable from a feature.