M
Michael Bauer [MVP - Outlook]
You have to declare the variable for the object that sends the events With
Events. For that you must add a reference to Outlook to your Word project
via Tools/References. Sample:
Private WithEvents m_Mail as Outlook.MailItem
Now you can choose m_Mail in the left combobox (right above the code window)
and then its several events from the right one.
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)
Am Tue, 27 Feb 2007 09:05:05 -0800 schrieb Graybane:
Events. For that you must add a reference to Outlook to your Word project
via Tools/References. Sample:
Private WithEvents m_Mail as Outlook.MailItem
Now you can choose m_Mail in the left combobox (right above the code window)
and then its several events from the right one.
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)
Am Tue, 27 Feb 2007 09:05:05 -0800 schrieb Graybane: