View Single Post
  #2  
Old September 3rd 07, 06:47 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default modifing runAllInboxRules to allow selection of folder, or to run in current folder including subfolders



Please see the arguments of the Rule.Execution method.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Sat, 1 Sep 2007 10:45:47 -0700 schrieb Bruce:

I have used Sue Moshers code for running all rules in inbox.

I would like to know how I can modify it so that I can choose which folder
to run it against.

Here seems to be the critical snippet

If rl.RuleType = olRuleReceive Then
' if so, run it
rl.Execute ShowProgress:=True
count = count + 1
ruleList = ruleList & vbCrLf & rl.Name
End If


Thanks
Bruce

Ads