<?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: Save all attachments from selected folder</title>
	<atom:link href="http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/</link>
	<description>Automation and VBA code for Microsoft® Excel and Outlook</description>
	<lastBuildDate>Sun, 21 Mar 2010 08:54:13 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: JP</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-2424</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Fri, 05 Mar 2010 00:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-2424</guid>
		<description>It&#039;s possible, since Outlook 2007 does allow you to restrict the items collection by attachment. So you might try the Danish word instead.</description>
		<content:encoded><![CDATA[<p>It's possible, since Outlook 2007 does allow you to restrict the items collection by attachment. So you might try the Danish word instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TFI</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-2419</link>
		<dc:creator>TFI</dc:creator>
		<pubDate>Thu, 04 Mar 2010 08:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-2419</guid>
		<description>Hi JP
This is just what I am looking for but..
I Have a Outlook 2007 DK

I get an error on this script it says: it can not read properties Attachment ?
[cc lang=&quot;vb&quot;]Set newItems = itms.Restrict(&quot;[attachment] &gt; 0&quot;)[/cc]

is there problems between the danish code and english code?

any help would be appreciated.. 

Regards TFI</description>
		<content:encoded><![CDATA[<p>Hi JP<br />
This is just what I am looking for but..<br />
I Have a Outlook 2007 DK</p>
<p>I get an error on this script it says: it can not read properties Attachment ?</p>
<div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:630px;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000080;">Set</span> newItems = itms.Restrict(<span style="color: #800000;">&quot;[attachment] &gt; 0&quot;</span>)</div></div>
<p>is there problems between the danish code and english code?</p>
<p>any help would be appreciated.. </p>
<p>Regards TFI</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-2411</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Thu, 25 Feb 2010 00:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-2411</guid>
		<description>See http://www.outlookcode.com/d/code/getfolder.htm for assistance in getting a reference to a public folder. Then just use MailItem.Move to move the message to the folder.</description>
		<content:encoded><![CDATA[<p>See <a href="http://www.outlookcode.com/d/code/getfolder.htm" rel="nofollow">http://www.outlookcode.com/d/code/getfolder.htm</a> for assistance in getting a reference to a public folder. Then just use MailItem.Move to move the message to the folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VPatel</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-2409</link>
		<dc:creator>VPatel</dc:creator>
		<pubDate>Wed, 24 Feb 2010 04:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-2409</guid>
		<description>Here&#039;s that I&#039;d like to do with the Outlook macro:

1. Read an email from a specified folder (for example: Inbox).

2. If the email has an attachment that I&#039;m seeking (an Excel file for example), I&#039;d like to place the attachment  into a folder on the hard drive. 

3. Then I&#039;d like to modify the body of the text to indicate where the attachment resides.

4. Remove the attachment from the email.

5. Move the email (without the attachment) into an Outlook public folder.

I don&#039;t know how to do step 5.  The rest of the steps I have successfully implemented in my macro.

Thanks for helping me.  That was very kind of you to reply to my question.

Vinita</description>
		<content:encoded><![CDATA[<p>Here's that I'd like to do with the Outlook macro:</p>
<p>1. Read an email from a specified folder (for example: Inbox).</p>
<p>2. If the email has an attachment that I'm seeking (an Excel file for example), I'd like to place the attachment  into a folder on the hard drive. </p>
<p>3. Then I'd like to modify the body of the text to indicate where the attachment resides.</p>
<p>4. Remove the attachment from the email.</p>
<p>5. Move the email (without the attachment) into an Outlook public folder.</p>
<p>I don't know how to do step 5.  The rest of the steps I have successfully implemented in my macro.</p>
<p>Thanks for helping me.  That was very kind of you to reply to my question.</p>
<p>Vinita</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-2406</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Tue, 23 Feb 2010 22:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-2406</guid>
		<description>I&#039;m not clear on what you need.

In these code samples, the attachment is being saved to a &lt;strong&gt;hard drive folder&lt;/strong&gt;, not an &lt;em&gt;Outlook&lt;/em&gt; folder, and (optionally) their relationship is being severed when the attachment is removed from the message. 

Do you want to move &lt;strong&gt;both&lt;/strong&gt; the email and the attachments to another Outlook folder? If so, do you want the attachments to remain with the email?

What criteria do you use to determine where the email goes?

Details please.</description>
		<content:encoded><![CDATA[<p>I'm not clear on what you need.</p>
<p>In these code samples, the attachment is being saved to a <strong>hard drive folder</strong>, not an <em>Outlook</em> folder, and (optionally) their relationship is being severed when the attachment is removed from the message. </p>
<p>Do you want to move <strong>both</strong> the email and the attachments to another Outlook folder? If so, do you want the attachments to remain with the email?</p>
<p>What criteria do you use to determine where the email goes?</p>
<p>Details please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VPatel</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-2399</link>
		<dc:creator>VPatel</dc:creator>
		<pubDate>Tue, 23 Feb 2010 01:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-2399</guid>
		<description>Hello,
You&#039;re code has been very helpful.  I would like to ask for a modification.
I would like to move the email along with the attachment to a different Outlook folder.
Can u provide some help with this task.

Thanks.

V</description>
		<content:encoded><![CDATA[<p>Hello,<br />
You're code has been very helpful.  I would like to ask for a modification.<br />
I would like to move the email along with the attachment to a different Outlook folder.<br />
Can u provide some help with this task.</p>
<p>Thanks.</p>
<p>V</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-1986</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Fri, 20 Nov 2009 01:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-1986</guid>
		<description>If you&#039;re getting different errors each time, try doing a search on the text of the error message.

Or rethink your process: Are the JPEG images the only thing preventing the code from completing successfully? If so, do you really need to preserve them?

With a filename like that, it sounds like a signature file image or hidden Outlook image (i.e. useless) anyway.</description>
		<content:encoded><![CDATA[<p>If you're getting different errors each time, try doing a search on the text of the error message.</p>
<p>Or rethink your process: Are the JPEG images the only thing preventing the code from completing successfully? If so, do you really need to preserve them?</p>
<p>With a filename like that, it sounds like a signature file image or hidden Outlook image (i.e. useless) anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nrr</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-1985</link>
		<dc:creator>nrr</dc:creator>
		<pubDate>Thu, 19 Nov 2009 15:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-1985</guid>
		<description>Thank you for the quick response. I have a counter that is going through each email and I am using that counter as part of the save filename. Same thing for the attachments. So I don&#039;t think it&#039;s a dup issue.

I use the pickfolder to allow the user to select which folder to process. Some folders it runs with no problems at all and all emails and attachments are saved accurately, but those emails with that problem attachment then it halts the code.

I thought if I could at least trap the error, write the email name / attachment names to a table, then I could still have the code continue to do all the other emails/attachments in the folder while still capturing the problem child so it can be done manually at the least.

Is that even feasible?</description>
		<content:encoded><![CDATA[<p>Thank you for the quick response. I have a counter that is going through each email and I am using that counter as part of the save filename. Same thing for the attachments. So I don't think it's a dup issue.</p>
<p>I use the pickfolder to allow the user to select which folder to process. Some folders it runs with no problems at all and all emails and attachments are saved accurately, but those emails with that problem attachment then it halts the code.</p>
<p>I thought if I could at least trap the error, write the email name / attachment names to a table, then I could still have the code continue to do all the other emails/attachments in the folder while still capturing the problem child so it can be done manually at the least.</p>
<p>Is that even feasible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-1984</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Wed, 18 Nov 2009 14:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-1984</guid>
		<description>Does it happen on the first iteration, or somewhere after that? If the latter, the file might be a duplicate. Try stepping through the code and when it errors, check the value of each variable. And of course I would check to make sure the folder is writable.</description>
		<content:encoded><![CDATA[<p>Does it happen on the first iteration, or somewhere after that? If the latter, the file might be a duplicate. Try stepping through the code and when it errors, check the value of each variable. And of course I would check to make sure the folder is writable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nrr</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/save-all-attachments-from-selected-folder/#comment-1983</link>
		<dc:creator>nrr</dc:creator>
		<pubDate>Wed, 18 Nov 2009 13:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=592#comment-1983</guid>
		<description>I have something similar to your code that saves the email as a text as well as any attahcments to a local drive. What happens is it goes through the iteration of attachemnts and then gives the following message:

&quot;-2116009979 Cannot save the attachment. Can&#039;t create file: image001.jpg. Right-click the folder you want to create the file in, and then click the Properties on the shortcut menu to check your permissions for the folder&quot;

I have found this error message to occur with different error numbers so I don&#039;t know how to trap it with error handling. So i could at least get the name of the email and the attachment to write to a table so it can be done manually while the code can still save all the rest and still run through the folder to completion.

Any way this error can be trapped?</description>
		<content:encoded><![CDATA[<p>I have something similar to your code that saves the email as a text as well as any attahcments to a local drive. What happens is it goes through the iteration of attachemnts and then gives the following message:</p>
<p>"-2116009979 Cannot save the attachment. Can't create file: image001.jpg. Right-click the folder you want to create the file in, and then click the Properties on the shortcut menu to check your permissions for the folder"</p>
<p>I have found this error message to occur with different error numbers so I don't know how to trap it with error handling. So i could at least get the name of the email and the attachment to write to a table so it can be done manually while the code can still save all the rest and still run through the folder to completion.</p>
<p>Any way this error can be trapped?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
