![]() Use if you want to run the rules on subfolders. A macro below runs rules in a secondary account. See " Working with VBA and non-default Outlook Folders". Use if you want to run the rules on a folder other than the default Inbox. Use to display the Progress dialog normally seen when using Run Rules Now command. MyRule.Execute ShowProgress:=True, Folder:=Session.GetDefaultFolder(olFolderInbox).Folders("my subfolder"), IncludeSubfolders:=True, RuleExecuteOption:=1 These are only needed if you don't want to use the defaults. ![]() MyRule.Execute supports 4 optional parameters. ![]() OlRuleNames = Array("SetCategory", "SetFlag", "MoveClutter") ' Enter the names of the rules you want to run Select Run a Script as the Action and select the RunRules macro. Create a Rule that looks for a message with your specific subject line.Type your rule names into the olRuleNames array.Paste the RunRules macro below into a new module in Outlook's VB Editor.Create the rules you want to run but do not enable them to run automatically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |