Events

  • Thread starter Thread starter George Hester
  • Start date Start date
G

George Hester

Does Outlook have an event for when a mailitem is sent to another folder
besides the Inbox folder. Say I use the New Mail event for the Inbox is
there something similar for an event when a mailitem goes into an arbitrary
folder? Thanks.
 
Every folder's Items collection has an ItemAdd event.
 
I don't understand. It's an event exposed by the Items collection. You
handle it just as you would any other Outlook object event. Instantiate an
Items collection object for a folder declared WithEvents (if using VB) and
handle the event handler procedure.
 
Thanks Ken. Yes I saw that WithEvents as I was looking more into this. Got
it.

--

George Hester
_________________________________
Ken Slovak - said:
I don't understand. It's an event exposed by the Items collection. You
handle it just as you would any other Outlook object event. Instantiate an
Items collection object for a folder declared WithEvents (if using VB) and
handle the event handler procedure.
 

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