<?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: Outlook Default Folders</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2009/03/20/outlook-default-folders/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2009/03/20/outlook-default-folders/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: JP</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/20/outlook-default-folders/#comment-38655</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Wed, 25 Mar 2009 03:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2269#comment-38655</guid>
		<description>&lt;p&gt;You need to escape any HTML characters when posting comments. Hopefully this will print properly:&lt;/p&gt;
&lt;p&gt;If Err.Number &lt;&gt; 1004&lt;/p&gt;
&lt;p&gt;However it should have worked in the VBA code. :roll:&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You need to escape any HTML characters when posting comments. Hopefully this will print properly:</p>
<p>If Err.Number &lt;&gt; 1004</p>
<p>However it should have worked in the VBA code. <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_rolleyes.gif' alt=':roll:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/20/outlook-default-folders/#comment-38596</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Sat, 21 Mar 2009 18:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2269#comment-38596</guid>
		<description>&lt;p&gt;I forgot about the less than greater than brackets.  There should be a &quot;not equal&quot; sign between &quot;Err.Number&quot; and &quot;1004?.  Let&#039;s see if it works between the VB brackets.&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Err.Number &#160;1004&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>I forgot about the less than greater than brackets.  There should be a &#8220;not equal&#8221; sign between &#8220;Err.Number&#8221; and &#8220;1004?.  Let&#8217;s see if it works between the VB brackets.</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">If</span> Err.Number &nbsp;1004</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/20/outlook-default-folders/#comment-38595</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Sat, 21 Mar 2009 18:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2269#comment-38595</guid>
		<description>&lt;p&gt;To add to JP&#039;s suggestion, I&#039;d try to test for the specific error, e.g., if deleting an undeletable folder generates an error 1004 then say, &quot;If Err.Number  1004?.  This further lessens the possibility that some other error is being cloaked by the On Error Resume Next statment.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>To add to JP&#8217;s suggestion, I&#8217;d try to test for the specific error, e.g., if deleting an undeletable folder generates an error 1004 then say, &#8220;If Err.Number  1004?.  This further lessens the possibility that some other error is being cloaked by the On Error Resume Next statment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/20/outlook-default-folders/#comment-38587</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Sat, 21 Mar 2009 02:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2269#comment-38587</guid>
		<description>&lt;p&gt;One way is to simply attempt to delete the folder, wrapping it in an &quot;On Error Resume Next/On Error Goto 0? pair. If it&#039;s a default folder, it won&#039;t be deleted. Use &quot;If Err = 0? to set the boolean flag to True.&lt;/p&gt;
&lt;p&gt;You could also try renaming the folder (default folders can&#039;t be renamed), if renaming causes an error, it&#039;s a default folder and you can exit the function. Although if you can make other folders non-renameable (is that a word?), this won&#039;t work to exclude non-default folders.&lt;/p&gt;
&lt;p&gt;And finally you could write a routine to delete folders instead, simply ignoring errors that occur, and returns boolean True if the folder delete actually succeeded. A variation of my first suggestion, if you will.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>One way is to simply attempt to delete the folder, wrapping it in an &#8220;On Error Resume Next/On Error Goto 0? pair. If it&#8217;s a default folder, it won&#8217;t be deleted. Use &#8220;If Err = 0? to set the boolean flag to True.</p>
<p>You could also try renaming the folder (default folders can&#8217;t be renamed), if renaming causes an error, it&#8217;s a default folder and you can exit the function. Although if you can make other folders non-renameable (is that a word?), this won&#8217;t work to exclude non-default folders.</p>
<p>And finally you could write a routine to delete folders instead, simply ignoring errors that occur, and returns boolean True if the folder delete actually succeeded. A variation of my first suggestion, if you will.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/20/outlook-default-folders/#comment-38578</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Fri, 20 Mar 2009 17:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2269#comment-38578</guid>
		<description>&lt;p&gt;Easier? Yes.  The problem is that I don&#039;t know Outlook very well.  The only reason I &quot;realized&quot; that I couldn&#039;t delete a default folder was because I inadvertently tried and failed.  I don&#039;t want to mask all the other things I&#039;m not supposed to be doing until I know what they are. :)  But for production, On Error would be better because I *do* want to mask what I don&#039;t know.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Easier? Yes.  The problem is that I don&#8217;t know Outlook very well.  The only reason I &#8220;realized&#8221; that I couldn&#8217;t delete a default folder was because I inadvertently tried and failed.  I don&#8217;t want to mask all the other things I&#8217;m not supposed to be doing until I know what they are. <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   But for production, On Error would be better because I *do* want to mask what I don&#8217;t know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan Scott</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/20/outlook-default-folders/#comment-38577</link>
		<dc:creator>Stan Scott</dc:creator>
		<pubDate>Fri, 20 Mar 2009 15:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2269#comment-38577</guid>
		<description>&lt;p&gt;An interesting approach, thanks.  I wonder, though, whether it wouldn&#039;t be easier to add the line &quot;On Error Resume Next&quot; at the top of the routine.&lt;/p&gt;
&lt;p&gt;Stan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>An interesting approach, thanks.  I wonder, though, whether it wouldn&#8217;t be easier to add the line &#8220;On Error Resume Next&#8221; at the top of the routine.</p>
<p>Stan</p>
]]></content:encoded>
	</item>
</channel>
</rss>

