Hello,

I have a question related to the Explorer_Close Event on Outlook VBA.

I have the following code:

Please Login or Register  to view this content.
The code itself work fine - with one important limitation (= my problem). The Explorer_Close event is only triggered when multiple Outlook windows are open and these are being closed. However when the last/main Outlook window is being closed, then this event is not triggered.

I have also tried Application_Quit - but when this runs it is no longer possible to process mail items.

Background - I am trying to cleanup certain items when I close Outlook.

Can anyone help?

Thanks
Jon