Catch attachment event

  • Thread starter Thread starter Vyyk Drago
  • Start date Start date
V

Vyyk Drago

Hi,

Can someone please give me or point me to an example of
capturing an attachment event. Importantly, how do I find
out which open email item an attachment is being made to?
I want to write a macro that changes the subject of
whatever email an attachment is being made to but cannot
figure it out. Any help or advice will be GREATLY
appreciated.

Many thanks and kind regards
Vyyk
 
If more than one item is open you will need an InspectorWrapper. See
http://www.slovaktech.com/code_samples.htm#InspectorWrapper for an example
of that.

The event you will need to handle is the AttachmentAdd event on the
Inspector.CurrentItem. You would declare a MailItem WithEvents in your code
to handle Inspector events and then you can handle the AttachmentAdd event.
 
Back
Top