OlRuleExecuteOption enumeration (Outlook)

Specifies the type of messages in the specified folder or folders that a rule should be applied to.

Name Value Description
olRuleExecuteAllMessages 0 Executes a rule against all messages in the specified folder or folders.
olRuleExecuteReadMessages 1 Executes a rule against messages that have been read in the specified folder or folders.
olRuleExecuteUnreadMessages 2 Executes a rule against messages that have not been read in the specified folder or folders.

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.