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

Run script rule not exectued for first few mails



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 3rd 09, 07:47 AM posted to microsoft.public.outlook.program_vba
Luc[_2_]
external usenet poster
 
Posts: 4
Default Run script rule not exectued for first few mails

I recently replaced a number of rules for routing incoming mails to
different folders by a single 'run script' rule, and wrote a more refined
version of the filters in VBA (in O2007).

Now, every morning when I start up outlook, the script is skipped for the
first handful of mails that are already waiting at the mail server (mails
are downloaded to personal folders, the script routes them to different
folders there).

When I start the script manually (tools / rules / run rules now), it moves
the mails to the right folders, and from then on everything works as
expected -- until the next day when I launch Outlook.


So what I think this means is that there's some kind of delay after Outlook
is started, before VBA begins to work. The rule is still executed for
later mails, also if I don't start it manually, but the first handful
always remain in my inbox.


Does anyone know more about this, and maybe a solution or a workaround?
Some way to delay collecting mail for 10-15 seconds after Outlook is
started should do the trick, I think.
 




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
Rule to run script Mike C Outlook - General Queries 4 August 15th 08 09:55 PM
Rule 'run a script' not running my script [email protected] Outlook and VBA 3 May 30th 06 12:09 PM
"Run a script" rule triggers but script does not execute Trey Shaffer Outlook and VBA 7 April 7th 06 11:34 PM
Create rule by script Louis Outlook and VBA 3 March 15th 06 04:49 PM
Script in Rule clarkel Outlook and VBA 2 February 2nd 06 08:20 PM


All times are GMT +1. The time now is 03:35 AM.


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.