Applying Outlook rules only after mail item is read.

  • Thread starter Thread starter Dinesh Patil
  • Start date Start date
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.
 
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.
 
Back
Top