<?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: Sorting Items in Outlook</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/07/26/sorting-items-in-outlook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/07/26/sorting-items-in-outlook/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: angel56</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/26/sorting-items-in-outlook/#comment-29341</link>
		<dc:creator>angel56</dc:creator>
		<pubDate>Wed, 12 Dec 2007 02:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=697#comment-29341</guid>
		<description>&lt;p&gt;Thanks Dick&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Dick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/26/sorting-items-in-outlook/#comment-29314</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Mon, 10 Dec 2007 22:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=697#comment-29314</guid>
		<description>&lt;p&gt;Angel:  Instr means one string is inside of a another.  If &quot;excel&quot; is in the body of the email, Instr will return its starting position (an integer).  If it can&#039;t find &quot;excel&quot; anywhere in the body, it will return 0.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Angel:  Instr means one string is inside of a another.  If &#8220;excel&#8221; is in the body of the email, Instr will return its starting position (an integer).  If it can&#8217;t find &#8220;excel&#8221; anywhere in the body, it will return 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angel56</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/26/sorting-items-in-outlook/#comment-29306</link>
		<dc:creator>Angel56</dc:creator>
		<pubDate>Mon, 10 Dec 2007 16:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=697#comment-29306</guid>
		<description>&lt;p&gt;If InStr(olMail.Body, &quot;excel&quot;) &gt; 0&lt;br&gt;
What does this mean?&lt;br&gt;
I&#039;m writing a macro to retrive the body of an outlook 2007 messages into excel.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If InStr(olMail.Body, &#8220;excel&#8221;) &gt; 0<br />
What does this mean?<br />
I&#8217;m writing a macro to retrive the body of an outlook 2007 messages into excel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/26/sorting-items-in-outlook/#comment-19288</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sun, 26 Mar 2006 09:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=697#comment-19288</guid>
		<description>&lt;p&gt;Any ideas on how to create a threading structure in outlook to organize messages by thread, like a messageboard?  This would be extremely helpful in organizing messages - also to remove duplicate content in the replies?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Any ideas on how to create a threading structure in outlook to organize messages by thread, like a messageboard?  This would be extremely helpful in organizing messages &#8211; also to remove duplicate content in the replies?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: boris</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/26/sorting-items-in-outlook/#comment-17557</link>
		<dc:creator>boris</dc:creator>
		<pubDate>Fri, 25 Nov 2005 11:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=697#comment-17557</guid>
		<description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I think there was a MSFT security update that changed the way VBA accesses Outlook. It is no longer possible to get SenderName. I may be wrong, but I can&#039;t seem to get this to work in Excel on my computer.&lt;/p&gt;
&lt;p&gt;Thanks&lt;br&gt;
Boris&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I think there was a MSFT security update that changed the way VBA accesses Outlook. It is no longer possible to get SenderName. I may be wrong, but I can&#8217;t seem to get this to work in Excel on my computer.</p>
<p>Thanks<br />
Boris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/26/sorting-items-in-outlook/#comment-17458</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 10 Nov 2005 17:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=697#comment-17458</guid>
		<description>&lt;p&gt;I&#039;ve found a situation where I think I&#039;ve sorted the collection, but it doesn&#039;t traverse the list in order.  I wanted to only search back a certain number of days, in case the number of messages gets too big.  Previously it would exit the sub as soon as the date fell out of range.  This seemed to miss some emails.  I tried &#039;for each&#039; and using and index, but with no luck.  Any ideas?&lt;/p&gt;
&lt;p&gt;Set flr = f.Folders(&quot;Inbox&quot;)&lt;br&gt;
flr.Items.Sort &quot;Receivedtime&quot;&lt;/p&gt;
&lt;p&gt;With flr.Items&lt;br&gt;
&#039;  For i = 1 To .count&lt;br&gt;
 For Each itm2 In flr.Items&lt;br&gt;
    &#039;set itm2=.item(i)&lt;br&gt;
  If TypeName(itm2) = &quot;MailItem&quot; Then&lt;br&gt;
       &#039; Set itm2 = .item(i)&lt;br&gt;
        dt = itm2.ReceivedTime&lt;br&gt;
        If DateDiff(&quot;d&quot;, dt, Date) &gt;= cboDays.Text Then GoTo skippy    &#039; previously would exit here&lt;/p&gt;
&lt;p&gt;        bd = itm2.body&lt;/p&gt;
&lt;p&gt;        sb = itm2.subject&lt;br&gt;
        from = itm2.SenderName&lt;br&gt;
        sentto = itm2.To&lt;br&gt;
        isauto = InStr(bd, AUTOIDXTXT) &gt; 0&lt;br&gt;
        If cbAutoIndexOnly = 0 Or isauto Then Addemail from, dt, sb, bd, sentto, itm2.entryid, itm2.htmlbody&lt;br&gt;
skippy:&lt;br&gt;
    End If&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve found a situation where I think I&#8217;ve sorted the collection, but it doesn&#8217;t traverse the list in order.  I wanted to only search back a certain number of days, in case the number of messages gets too big.  Previously it would exit the sub as soon as the date fell out of range.  This seemed to miss some emails.  I tried &#8216;for each&#8217; and using and index, but with no luck.  Any ideas?</p>
<p>Set flr = f.Folders(&#8220;Inbox&#8221;)<br />
flr.Items.Sort &#8220;Receivedtime&#8221;</p>
<p>With flr.Items<br />
&#8216;  For i = 1 To .count<br />
 For Each itm2 In flr.Items<br />
    &#8216;set itm2=.item(i)<br />
  If TypeName(itm2) = &#8220;MailItem&#8221; Then<br />
       &#8216; Set itm2 = .item(i)<br />
        dt = itm2.ReceivedTime<br />
        If DateDiff(&#8220;d&#8221;, dt, Date) &gt;= cboDays.Text Then GoTo skippy    &#8216; previously would exit here</p>
<p>        bd = itm2.body</p>
<p>        sb = itm2.subject<br />
        from = itm2.SenderName<br />
        sentto = itm2.To<br />
        isauto = InStr(bd, AUTOIDXTXT) &gt; 0<br />
        If cbAutoIndexOnly = 0 Or isauto Then Addemail from, dt, sb, bd, sentto, itm2.entryid, itm2.htmlbody<br />
skippy:<br />
    End If</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Ward</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/26/sorting-items-in-outlook/#comment-2055</link>
		<dc:creator>Vince Ward</dc:creator>
		<pubDate>Thu, 29 Jul 2004 12:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=697#comment-2055</guid>
		<description>&lt;p&gt;Hi Dick,&lt;/p&gt;
&lt;p&gt;Thanks for posting this code above and also what is on your website.  I&#039;ve been trying to learn more about the Outlook object model since trying to implement the Getting Things Done system, and this has been very helpful.  &lt;/p&gt;
&lt;p&gt;In the last couple of days, I&#039;ve created two macros.  The first creates a note and lists all my current projects in it.  The second macro uses a userform to let me place the project title (using a listbox populated by project folders) on the subject line of a task, which will allow me to easily create a project and next action tracking system in Excel.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Vince&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dick,</p>
<p>Thanks for posting this code above and also what is on your website.  I&#8217;ve been trying to learn more about the Outlook object model since trying to implement the Getting Things Done system, and this has been very helpful.  </p>
<p>In the last couple of days, I&#8217;ve created two macros.  The first creates a note and lists all my current projects in it.  The second macro uses a userform to let me place the project title (using a listbox populated by project folders) on the subject line of a task, which will allow me to easily create a project and next action tracking system in Excel.</p>
<p>Thanks again,</p>
<p>Vince</p>
]]></content:encoded>
	</item>
</channel>
</rss>

