If the msg is popping up first before the code execute s the item send event then you cant do it from managed/automation code. You will need to modify the Outlook Form and add VB Script code to the event and see if it fires before the error msg. I doubt that it will but could be worth a try.