Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / March 2008

Tip: Looking for answers? Try searching our database.

Applying Outlook rules only after mail item is read.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dinesh Patil - 05 Mar 2008 08:38 GMT
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.
Ken Slovak - [MVP - Outlook] - 05 Mar 2008 14:12 GMT
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.

Signature

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

>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.
[quoted text clipped - 8 lines]
>
> Thanks in advance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.