Applying Outlook rules only after mail item is read.

D

Dinesh Patil

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top