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.
 
That is excellent! Thanks!

-----Original Message-----
If more than one item is open you will need an InspectorWrapper. See
http://www.slovaktech.com/code_samples.htm#InspectorWrapp er 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.







.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top