OlRuleExecuteOption Enumeration (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.

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.

Show: