You forgot to provide your Outlook version.

Signature
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
> Hi,
>
[quoted text clipped - 5 lines]
> mail. I have written my code in the Application_NewMail() event; so
> that it acts when new mail arrives to my inbox (outlook).