A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , , , , ,

modifing runAllInboxRules to allow selection of folder, or to run in current folder including subfolders





 
 
Thread Tools Display Modes
  #1  
Old September 1st 07, 07:45 PM posted to microsoft.public.outlook.program_vba
Bruce
external usenet poster
 
Posts: 22
Default modifing runAllInboxRules to allow selection of folder, or to run in current folder including subfolders

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
  #2  
Old September 3rd 07, 07:47 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,264
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

  #3  
Old September 6th 07, 04:36 PM posted to microsoft.public.outlook.program_vba
Bruce
external usenet poster
 
Posts: 22
Default modifing runAllInboxRules to allow selection of folder, or to run in current folder including subfolders

I do not see a way to "select" folders. I see how to program in a folder
"hard coded"

Thanks,
Bruce



"Michael Bauer [MVP - Outlook]" wrote in message
.. .


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


  #4  
Old September 7th 07, 07:49 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,264
Default modifing runAllInboxRules to allow selection of folder, or to run in current folder including subfolders



That's the PickFolder function.

--
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 Thu, 6 Sep 2007 07:36:33 -0700 schrieb Bruce:

I do not see a way to "select" folders. I see how to program in a folder
"hard coded"

Thanks,
Bruce



"Michael Bauer [MVP - Outlook]" wrote in message
.. .


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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OOM 2003: can't identify selected folder from Selection Kelmen Add-ins for Outlook 2 July 24th 07 03:27 PM
Can I propagate Outlook folder permissions to subfolders? Midwest Muskie Outlook - Installation 0 July 12th 07 04:26 PM
Outlook 2007: when selecting a new folder, the highlighted selection always resets to the top. OL2003 would select to last entry Warrick Wilson Outlook - General Queries 2 March 4th 07 02:19 PM
how to access current text selection DavidH&P Outlook - Using Forms 1 February 12th 07 04:09 PM
created contact is seen in contacts folder but not in distribution list's member selection rachel.villacorta@gmail.com Outlook - Using Contacts 4 October 27th 06 05:09 AM


All times are GMT +1. The time now is 06:07 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Novela Historica - Mortgages - Secured Loans - Loans - Modded Xbox