<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to run Outlook 2007/2010 Rules from a button</title>
	<atom:link href="http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/feed/" rel="self" type="application/rss+xml" />
	<link>http://pyrocam.com</link>
	<description>I&#039;m like Vitamins for Computers</description>
	<lastBuildDate>Tue, 08 May 2012 23:32:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Bill Hendricks</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-43079</link>
		<dc:creator>Bill Hendricks</dc:creator>
		<pubDate>Fri, 04 May 2012 20:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-43079</guid>
		<description>Ditto on #28&#039;s question.  Can this macro be modifed to run ALL rules rather than just INBOX rules?  I tried modifying the inbox condition:

&#039; iterate all the rules
For Each rl In myRules
&#039; determine if it’s an Inbox rule
&#039;If rl.RuleType = olRuleReceive Then
&#039; if so, run it
rl.Execute ShowProgress:=True
count = count + 1
ruleList = ruleList &amp; vbCrLf &amp; rl.Name
&#039;End If
Next

... but it still doesn&#039;t work on SENT rules.</description>
		<content:encoded><![CDATA[<p>Ditto on #28&#8242;s question.  Can this macro be modifed to run ALL rules rather than just INBOX rules?  I tried modifying the inbox condition:</p>
<p>&#8216; iterate all the rules<br />
For Each rl In myRules<br />
&#8216; determine if it’s an Inbox rule<br />
&#8216;If rl.RuleType = olRuleReceive Then<br />
&#8216; if so, run it<br />
rl.Execute ShowProgress:=True<br />
count = count + 1<br />
ruleList = ruleList &amp; vbCrLf &amp; rl.Name<br />
&#8216;End If<br />
Next</p>
<p>&#8230; but it still doesn&#8217;t work on SENT rules.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danehbear</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-39735</link>
		<dc:creator>Danehbear</dc:creator>
		<pubDate>Mon, 16 Apr 2012 17:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-39735</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D.J. Clark</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-36712</link>
		<dc:creator>D.J. Clark</dc:creator>
		<pubDate>Mon, 26 Mar 2012 14:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-36712</guid>
		<description>Hello - I&#039;d like to use this process to archive my sent e-mail items.  I have a rule that does this, but when I create the VB routine and button as above, it does not archive the sent e-mails.  I don&#039;t get an error, but it doesn&#039;t work.  Is the routine above someone specific to to Inbox (as opposed to the Sent folder)?  Thanks</description>
		<content:encoded><![CDATA[<p>Hello &#8211; I&#8217;d like to use this process to archive my sent e-mail items.  I have a rule that does this, but when I create the VB routine and button as above, it does not archive the sent e-mails.  I don&#8217;t get an error, but it doesn&#8217;t work.  Is the routine above someone specific to to Inbox (as opposed to the Sent folder)?  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Adams</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-34404</link>
		<dc:creator>Christopher Adams</dc:creator>
		<pubDate>Wed, 22 Feb 2012 20:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-34404</guid>
		<description>I put the e-mails I have answered into a DONE subfolder and then use my rules on the DONE folder.

Is there any way this code can be adapted sot hat all of my rules in the Rules Wizard run on the subfolder and not the Inbox?</description>
		<content:encoded><![CDATA[<p>I put the e-mails I have answered into a DONE subfolder and then use my rules on the DONE folder.</p>
<p>Is there any way this code can be adapted sot hat all of my rules in the Rules Wizard run on the subfolder and not the Inbox?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norm</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-34049</link>
		<dc:creator>Norm</dc:creator>
		<pubDate>Thu, 16 Feb 2012 16:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-34049</guid>
		<description>Worked like a charm. To the guy  in the comment above me, you have your execution of the rule commented out! &#039; turns the line into a comment and it doesn&#039;t execute ;)</description>
		<content:encoded><![CDATA[<p>Worked like a charm. To the guy  in the comment above me, you have your execution of the rule commented out! &#8216; turns the line into a comment and it doesn&#8217;t execute <img src='http://pyrocam.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DJH</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-33957</link>
		<dc:creator>DJH</dc:creator>
		<pubDate>Mon, 13 Feb 2012 09:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-33957</guid>
		<description>The above macro template proved very helpful for Outlook 2007 rules management (my 385+ rules are manually run at least once daily) - thanks !!

Note 1: Using trial-n-error (I&#039;m a macros novice), I made minor revisions to add &quot;Ready&quot; and &quot;Done&quot; message boxes (see revised template below).

Note 2: To enable this macro, the Outlook 2007 Macro Security Setting may need to be switched to the following option: Tools &gt;&gt; Macros &gt;&gt; Security &gt;&gt; &quot;Warnings for all macros&quot;.

==========

Sub A_Run_All_Inbox_Rules()

&#039; Macro Ready Message Box
MsgBox &quot;Ready: All Inbox Rules will be executed.&quot;

Dim st As Outlook.Store
Dim myRules As Outlook.Rules
Dim rl As Outlook.Rule
Dim count As Integer
Dim ruleList As String
&#039;On Error Resume Next

&#039; get default store (where rules live)
Set st = Application.Session.DefaultStore
&#039; get rules
Set myRules = st.GetRules

&#039; iterate all the rules
For Each rl In myRules
&#039; determine if it’s an Inbox rule
If rl.RuleType = olRuleReceive Then
&#039; if so, run it
rl.Execute ShowProgress:=True
count = count + 1
ruleList = ruleList &amp; vbCrLf &amp; rl.Name
End If
Next

&#039; Macro Done Message Box
MsgBox &quot;Done: All Inbox Rules have been executed.&quot;

Set rl = Nothing
Set st = Nothing
Set myRules = Nothing
End Sub

==========</description>
		<content:encoded><![CDATA[<p>The above macro template proved very helpful for Outlook 2007 rules management (my 385+ rules are manually run at least once daily) &#8211; thanks !!</p>
<p>Note 1: Using trial-n-error (I&#8217;m a macros novice), I made minor revisions to add &#8220;Ready&#8221; and &#8220;Done&#8221; message boxes (see revised template below).</p>
<p>Note 2: To enable this macro, the Outlook 2007 Macro Security Setting may need to be switched to the following option: Tools &gt;&gt; Macros &gt;&gt; Security &gt;&gt; &#8220;Warnings for all macros&#8221;.</p>
<p>==========</p>
<p>Sub A_Run_All_Inbox_Rules()</p>
<p>&#8216; Macro Ready Message Box<br />
MsgBox &#8220;Ready: All Inbox Rules will be executed.&#8221;</p>
<p>Dim st As Outlook.Store<br />
Dim myRules As Outlook.Rules<br />
Dim rl As Outlook.Rule<br />
Dim count As Integer<br />
Dim ruleList As String<br />
&#8216;On Error Resume Next</p>
<p>&#8216; get default store (where rules live)<br />
Set st = Application.Session.DefaultStore<br />
&#8216; get rules<br />
Set myRules = st.GetRules</p>
<p>&#8216; iterate all the rules<br />
For Each rl In myRules<br />
&#8216; determine if it’s an Inbox rule<br />
If rl.RuleType = olRuleReceive Then<br />
&#8216; if so, run it<br />
rl.Execute ShowProgress:=True<br />
count = count + 1<br />
ruleList = ruleList &amp; vbCrLf &amp; rl.Name<br />
End If<br />
Next</p>
<p>&#8216; Macro Done Message Box<br />
MsgBox &#8220;Done: All Inbox Rules have been executed.&#8221;</p>
<p>Set rl = Nothing<br />
Set st = Nothing<br />
Set myRules = Nothing<br />
End Sub</p>
<p>==========</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elli</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-33254</link>
		<dc:creator>Elli</dc:creator>
		<pubDate>Mon, 30 Jan 2012 21:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-33254</guid>
		<description>It&#039;s working perfectly! However, I&#039;d like to run this only on &quot;Read&quot; messages.  Any ideas? Thank you!</description>
		<content:encoded><![CDATA[<p>It&#8217;s working perfectly! However, I&#8217;d like to run this only on &#8220;Read&#8221; messages.  Any ideas? Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-31904</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 20 Jan 2012 14:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-31904</guid>
		<description>Any solution for the 0x90020009 error with an IMAP setup?  Outlook 2010 can sync with a gmail account, but neither the All Rules or Single Rule macros will run.  They both work fine when I use them on my work account since that uses Exchange Server.</description>
		<content:encoded><![CDATA[<p>Any solution for the 0&#215;90020009 error with an IMAP setup?  Outlook 2010 can sync with a gmail account, but neither the All Rules or Single Rule macros will run.  They both work fine when I use them on my work account since that uses Exchange Server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-31846</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 19 Jan 2012 19:11:05 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-31846</guid>
		<description>Is it possible to designate more than one (but not all) rules with this method? I&#039;m a non-coder, but i follow instructions REAL well.</description>
		<content:encoded><![CDATA[<p>Is it possible to designate more than one (but not all) rules with this method? I&#8217;m a non-coder, but i follow instructions REAL well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://pyrocam.com/how-to-run-outlook-2007-rules-from-a-button/comment-page-1/#comment-29954</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Thu, 29 Dec 2011 12:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://pyrocam.com/?page_id=5#comment-29954</guid>
		<description>Hi, Got a question trying to use your script to disable only one rule. But this isn;t working, I&#039;m complete new to this, so hope you can help. Underneath is hat I tried. Thanks in advance.
Rob
----------
If rl.Name = rulename Then
  rl.Enabled = False
  
  &#039;rl.Execute ShowProgress:=True
  &#039;runrule = rl.Name
  
End If</description>
		<content:encoded><![CDATA[<p>Hi, Got a question trying to use your script to disable only one rule. But this isn;t working, I&#8217;m complete new to this, so hope you can help. Underneath is hat I tried. Thanks in advance.<br />
Rob<br />
&#8212;&#8212;&#8212;-<br />
If rl.Name = rulename Then<br />
  rl.Enabled = False</p>
<p>  &#8216;rl.Execute ShowProgress:=True<br />
  &#8216;runrule = rl.Name</p>
<p>End If</p>
]]></content:encoded>
	</item>
</channel>
</rss>

