AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Note that the code sample assumes that there already exists a folder "Dan" under the Inbox. The code sample uses the RuleAction and RuleCondition objects to specify a rule that forwards messages from a specific sender to a specific folder, unless the message contains certain terms in the subject. The following code sample in Visual Basic for Applications (VBA) uses the Rules object model to create a rule. The ExecutionOrder of other rules in the collection is incremented by 1. ![]() When a rule is added to the collection, the Rule.ExecutionOrder of the new rule is 1. The RuleType parameter of the added rule determines valid rule actions, rule conditions, and rule exception conditions that can be associated with the Rule object. Names of rules in a collection are not unique.Ī constant in the OlRuleType enumeration that determines whether the rule is applied on sending or receiving a message.Ī Rule object that represents the newly created rule. Parameters NameĪ string identifier for the rule, which will be represented by Rule.Name after rule creation. Create( _Name_, _RuleType_ )Įxpression A variable that represents a Rules object. Creates a Rule object with the name specified by Name and the type of rule specified by RuleType.
0 Comments
Read More
Leave a Reply. |