You cannot prematurely exit the event. However, you could include a case statement inside the event. Make your comparison inside the event and wire this to the case statement. In the case that the comparison is TRUE then you would open the file and save the data. In the case that the comparison is FALSE you would run the dialog. While this approach does not exit the event prematurely, it does accomplish the goal of exiting the event without running your save routines. I have attached an example which should illustrate this approach.