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

Applying Outlook rules only after mail item is read.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 5th 08, 08:38 AM posted to microsoft.public.outlook.program_vba
Dinesh Patil
external usenet poster
 
Posts: 2
Default Applying Outlook rules only after mail item is read.

I have certain rules defined in my outlook. I want to write a VBA code with
which the rule should be applied after the mail is read by user.
e.g. If I have set up a rule that when a mail arrives in my inbox, the mail
should be moved to a specific folder. In the normal case, mail will be
moved to the folder as soon it arrives in my inbox. Is it possible with the
help VBA, that if user has read the mail, then only it should be moved to the
folder?

Thanks in advance.




Ads
  #2  
Old March 5th 08, 02:12 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Applying Outlook rules only after mail item is read.

What version of Outlook?

For Outlook 2003 and earlier you'd have to write the code for that yourself,
you can't use a rule for that unless you disable it from running
automatically and then manually run the rule.

For Outlook 2007 you could access the Rules collection from VBA code using
Store.GetRules(). Once you locate the rule you want you can call its
Execute() method.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dinesh Patil" wrote in message
...
I have certain rules defined in my outlook. I want to write a VBA code with
which the rule should be applied after the mail is read by user.
e.g. If I have set up a rule that when a mail arrives in my inbox, the
mail
should be moved to a specific folder. In the normal case, mail will be
moved to the folder as soon it arrives in my inbox. Is it possible with
the
help VBA, that if user has read the mail, then only it should be moved to
the
folder?

Thanks in advance.





 




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
Making email item 'Read' programmatically Dinesh Patil Outlook and VBA 1 March 3rd 08 02:17 PM
Applying rules to msg's from hotmail Stephen Outlook - General Queries 1 June 7th 07 08:22 AM
? Automatically Applying Rules to Sent Messages Alec S. Outlook Express 2 August 29th 06 06:13 PM
Rules and New Item Alerts in Outlook [email protected] Outlook - General Queries 2 June 20th 06 01:16 PM
Read contents of Note inserted in Outlook Contact Item Body JPL Outlook and VBA 4 June 5th 06 08:19 PM


All times are GMT +1. The time now is 03:41 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.