ToOrFromRuleCondition.ConditionType Property (Outlook)

Office 2013 and later

Contribute to this content

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

Returns a constant from the OlRuleConditionType enumeration that indicates the type of rule condition. Read-only.

expression .ConditionType

expression A variable that represents a ToOrFromRuleCondition object.

ConditionType depends on the type of rule condition, as two types of rule conditions use the ToOrFromRuleCondition object: olConditionFrom and olConditionSentTo. olConditionFrom is supported only by rules for receiving messages, while olConditionSentTo is supported by rules for receiving messages as well as rules for sending messages. For more information, see Specify Rule Conditions.