Rule.Actions property (Outlook)
Returns a RuleActions collection object that represents all the available rule actions for the rule. Read-only.
Syntax
expression. Actions
expression A variable that represents a Rule object.
Remarks
You can enumerate and enable rules with any rule action that the Rules and Alerts Wizard support, but you can programmatically create rules that have only the most commonly used rule actions, and not any rule action that the Rules and Alerts Wizard supports. For more information on rule action support, see Specify Rule Actions.
Through the Actions property, each rule is associated with a RuleActions object. The RuleActions collection is a fixed object - you cannot add or remove items from this collection. Rule actions that are enabled in the rule will have an enabled rule action in the RuleActions collection. Rule actions that are not enabled in the rule will have a rule action in this collection that has the RuleAction.Enabled property set to False. Rule actions that are not supported during programmatic rule creation can only be enumerated in the RuleActions collection for an existing rule, but because the RuleActions collection is fixed, you cannot create a rule and add such an action to the associated RuleActions collection.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.