problem in Disabling item_write event in outlook

  • Thread starter Thread starter Ashish
  • Start date Start date
A

Ashish

I am facing a problem in my outlook addin.
When we save a mail which is in draft folder item_write event is called. But
If we close a mail which is in draft folder then first outlook give a
message "do you want to save it" and if we select "yes" then two events are
called for this case item_write() and item_close().
If i avoid saving in item_write then item_close event is not fired.

Function Item_Write()
Item_Write = False
End Function

Is there any way to fire item_close() if i avoid saving in item_write() for
a mail in drafts folder.
 
Back
Top