A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Any event when Receiving tasks complet?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 8th 06, 10:00 PM posted to microsoft.public.outlook.program_vba
iammark
external usenet poster
 
Posts: 6
Default Any event when Receiving tasks complet?

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  
Old February 8th 06, 10:05 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Any event when Receiving tasks complet?

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  
Old February 8th 06, 10:33 PM posted to microsoft.public.outlook.program_vba
iammark
external usenet poster
 
Posts: 6
Default Any event when Receiving tasks complet?

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  
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?


  #5  
Old February 9th 06, 01:03 AM posted to microsoft.public.outlook.program_vba
iammark
external usenet poster
 
Posts: 6
Default Any event when Receiving tasks complet?

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  
Old February 9th 06, 03:41 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Any event when Receiving tasks complet?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 08:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.