![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi,
I am play VBA in Microsoft Outlook. Do you know how to fire an event when the Receiving tasks complet? Thank you in advance. |
#2
|
|||
|
|||
![]()
The PropertyChange event should fire in that case. The input argument for
that event will tell you what property was changed. Or do you mean when the Inbox receives a complete notification for an assigned task? In that case you would receive an ItemAdd event on the Items collection of the Inbox. -- 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 ups.com... Hi, I am play VBA in Microsoft Outlook. Do you know how to fire an event when the Receiving tasks complet? Thank you in advance. |
#3
|
|||
|
|||
![]()
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? |
#4
|
|||
|
|||
![]()
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? |
#5
|
|||
|
|||
![]()
Yes, I need to deal with the new email and it must take too much time!!
I am using Outlook 2000 ![]() Any event will be fired when Outlook finished receiving the new emails? |
#6
|
|||
|
|||
![]()
No. The NewMail event only fires every so often and can't be depended on at
all. ItemAdd is your only option with Outlook 2000. Just set up in your ItemAdd handler enough information stored in a collection or something so you can later process the items. Then set up a call-back to do the processing after you exit ItemAdd. A timer would do the trick. When the timer fires you process each item in the collection. If ItemAdd fires again you're not in that interrupt handler so it won't be blocked. -- 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 ups.com... Yes, I need to deal with the new email and it must take too much time!! I am using Outlook 2000 ![]() Any event will be fired when Outlook finished receiving the new emails? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
not receiving email | The Gordons | Outlook Express | 5 | February 14th 06 07:43 AM |
receiving attachments | battersby | Outlook Express | 11 | February 11th 06 04:29 AM |
Receiving E-Mails... | Mafiamoto | Outlook Express | 3 | January 23rd 06 08:56 PM |
Receiving Mail | tlernst | Outlook - Installation | 1 | January 16th 06 06:16 PM |
Not receiving e-mail | Dove | Outlook - Installation | 1 | January 14th 06 11:34 AM |