ToOrFromRuleCondition.Enabled property (Outlook)

Returns a Boolean value that indicates whether the rule condition is enabled. Read/write

Syntax

expression.Enabled

expression A variable that represents a ToOrFromRuleCondition object.

Remarks

After you enable a rule condition, you must also save the rule by using Rules.Save so that the rule condition and its enabled state will persist beyond the current session. A rule condition is only enabled after it have been saved successfully.

Returns an error if you attempt to enable a rule condition that is supported only on a rule of type olRuleSend for a rule of type olRuleReceive, or vice versa. For more information on suppport by rules for receiving messages or rules for sending messages, see Specify Rule Conditions.

See also

ToOrFromRuleCondition Object

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.