View Single Post
  #4  
Old February 9th 06, 12:29 AM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Any event when Receiving tasks complet?

ItemAdd will fire unless you get more than about 16 items at a time.
Otherwise it's a question of your event handler taking too much time and
therefore missing the following event.

Is this Outlook 2003 VBA? If so you could use the Application.NewMailEx
event which passes an array of EntryID's for each new item. You can parse
the array and use NameSpace.GetItemFromID to get those items using the
EntryID's.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"iammark" wrote in message
oups.com...
Thank you for your quick response.

In fact, I need to do deal with every new email. I have tried the
ItemAdd event. The problem is when receiving more than one email, only
one event fired.
Now, I am trying only to record new email items in the ItemAdd event
without doing anything, until the Receiving tasks complet, then I will
deal with all the new emails....
Can I do that?


Ads