RuleAction Object
Collapse the table of content
Expand the table of content

RuleAction Object (Outlook)


Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents an action that is run when a Rule object executes.

RuleAction is the base class for rule actions that are supported in programmatic rule creation. The classes derived from RuleAction include:

The Rules object model provides partial parity with the Rules and Alerts Wizard in the Outlook user interface. It supports the most commonly used rule actions and conditions. Although it does not support creating rules with each rule action or rule condition that the Wizard supports, you can still enumerate and enable these rule actions and conditions in existing rules.

For more information on rule actions, see Specifying Rule Actions and How to: Create a Rule to Move Specific E-mails to a Folder.

© 2015 Microsoft