AddressRuleCondition Object (Outlook)

Office 2013 and later

Contribute to this content

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

Represents a rule condition that evaluates whether the address for the recipient or sender of the message is contained in the address specified in AddressRuleCondition.Address.

AddressRuleCondition is derived from the RuleCondition object. Each rule is associated with a RuleConditions object which has a RecipientAddress property and a SenderAddress. Each of these properties always returns a AddressRuleCondition object. AddressRuleCondition.ConditionType distinguishes among these rule conditions. If the rule has any of these rule conditions enabled, then AddressRuleCondition.Enabled would be True.

For more information on specifying rule actions, see Specifying Rule Conditions.