Events

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 
G

George Hester

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.
 
Top