TextRuleCondition Object
TOC
Collapse the table of content
Expand the table of content

TextRuleCondition Object (Outlook)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

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

Represents a rule condition that the part of the message, which can be the body, header, or subject, as specified by TextRuleCondition.ConditionType, contains the words specified in TextRuleCondition.Text.

TextRuleCondition is derived from the RuleCondition object. Each rule is associated with a RuleConditions object which has the following properties: Body, BodyOrSubject, MessageHeader, and Subject. Each of these properties always returns a TextRuleCondition object. TextRuleCondition.ConditionType distinguishes among these rule conditions. If the rule has any of these rule conditions enabled, then TextRuleCondition.Enabled would be True.

For more information on specifying rule conditions, see Specify Rule Conditions.

Show:
© 2016 Microsoft