Use the Inspectors.NewInspector event and check the value of Inspector.CurrentItem.Class to determine what type of item was opened.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Willem Peper" wrote in message ...
Hi,
I want to add a command bar to the contact window as soon as it opens. This
command bar shall not display on mail or task windows.
Is there an event to trigger the macro or how can I achieve it?
Thanks
Willem