Outlook Object Model: Setting Cancel parameter of TaskRequestItem event doesn't keep Inspector open
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) If vbCancel = MsgBox(TypeName(Item), vbOKCancel) Then Cancel = True End IfEnd Sub
When a TaskRequestItem event comes into the event handler, and you try to cancel the event by setting the parameter to True, the event is not canceled as expected. The Inspector window closes, and the task is displayed as assigned, but the task request is not sent.
Article ID: 3179549 - Last Review: 08/25/2016 17:55:00 - Revision: 1.0