The code goes in the ThisOutlookSession class. The code is running
in-process with Outlook, so if Outlook is closed the code stops.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
wrote in message
...
Hi Ken,
The tip you provided lead me on a journey where I ended up installing
Collaboration Data Objects. (Microsoft CDO 1.2.1 Library).
This URL was helpful:
http://j-integra.intrinsyc.com/suppo...aspx?id=113792
.
I followed the instructions and forturnately I was able to install
from the network without a CD.
Now....
1. Where is the recommended place to put the code for
Application_Startup() and olInboxItems_ItemAdd() ?
Microsoft Office Outlook Objects -ThisOutlookSession- (General
Module)
Or anyplace, such as:
Modules - Module1
2. When I log out of this account - will the AddItem code turn off?
Thanks.