There's an excellent code sample here that shows you how to do this:
To clear the Outlook envelope icon from the Windows system tray:
http://www.outlookcode.com/d/code/clearenvicon.htm
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job:
http://www.imaginets.com
Blog:
http://blogs.officezealot.com/legault/
"R Avery" wrote:
> I have a program that sorts email based on the NewMail event. I auto
> move it to a particular folder, and do .UnRead = False
> However, the Outlook SysTray icon that notifies me that new mail has
> arrived is still displayed. How can I programmatically turn this off if
> one of my VBA rules sorts the email?
>