<?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: GetCreateAutomationObject</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/05/27/getcreateautomationobject/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/05/27/getcreateautomationobject/</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: mike clermont</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/getcreateautomationobject/#comment-2648</link>
		<dc:creator>mike clermont</dc:creator>
		<pubDate>Fri, 26 Nov 2004 03:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=581#comment-2648</guid>
		<description>&lt;p&gt;Hi, Not sure if this is the right place to ask this but I will anyway :-)&lt;/p&gt;
&lt;p&gt;In your automation code you use the line getnamespace(&quot;MAPI&quot;).getdefaultfolder(6).items(1).Subject&lt;/p&gt;
&lt;p&gt;I have a situation where what I want exists in a sub, sub folder.&lt;/p&gt;
&lt;p&gt;I am using Office 2003&lt;/p&gt;
&lt;p&gt;If i set Folder = subFolder it breaks. &lt;/p&gt;
&lt;p&gt;The complete problem is that I recieve 42 emails an hour that contain information that I have to act on, in case of a fail I need to know immediately. &lt;/p&gt;
&lt;p&gt;There is a set policy that these emails will exist in a certain email box for backing up and standardization.&lt;/p&gt;
&lt;p&gt;The structure is My Email-&gt;Inbox -&gt; Clients -&gt; ClientName -&gt;Report for Client&lt;/p&gt;
&lt;p&gt;Note: there is a further subFolder called Processed that the files are stored in once I act on them.&lt;/p&gt;
&lt;p&gt;The email contains a standard file name with the date and time appended.&lt;/p&gt;
&lt;p&gt;The contents of the message contains two things&lt;br&gt;
First is a series of lines that contain the following:&lt;br&gt;
=_ _ REPORT: Emails_XXXXXXXXXXXX_filename.zip.pgp is being moved to HOLD,&lt;/p&gt;
&lt;p&gt;The # of X&#039;s can change as it is a customer generated message serial number. The _filename.zip.pgp is constant as is the leading = _ _ REPORT: and work Emails.&lt;/p&gt;
&lt;p&gt;The second part of the message contains the lines like:&lt;br&gt;
 REPORT: confirms, , 0, 0, 0&lt;br&gt;
and&lt;br&gt;
 REPORT: decrypt EMAILS_20041122_2844_20041122121948359.zip.pgp FAIL!&lt;/p&gt;
&lt;p&gt;In the first example (confirms) the commas seperate fields that contain information. &lt;/p&gt;
&lt;p&gt;When that particular file is processed if it is successfull the zero values are poplated with text and other numbers like file size in megabytes.&lt;/p&gt;
&lt;p&gt;What I am trying to automate is the creation of an excel spreadsheet that will do the following.&lt;/p&gt;
&lt;p&gt;1)Scan my Outlook to the Report for Client subFolder.&lt;br&gt;
2)Select the first message, and extract its contents to Excel.&lt;br&gt;
3)Capture:&lt;br&gt;
  a)the datetime received stamp built into Outlook&lt;br&gt;
  b)message subject&lt;br&gt;
  c)sender (which is always the same but I need to&lt;br&gt;
  capture if that changes)&lt;br&gt;
  d)each line of the message body&lt;br&gt;
  e)loop through the sheet for the NEXT row to insert this block of information&lt;br&gt;
  F)create a new row in excel for each line from the message. Note:it would be nice to parse out the = _ _ characters before it hits excel.&lt;br&gt;
  G) move back to outlook and move the first message to the processed folder&lt;br&gt;
  H)move to the next message if it exists.&lt;/p&gt;
&lt;p&gt;each line in the email must live on a seperate seperate row with all the captured information about the email. &lt;/p&gt;
&lt;p&gt;Once I get it into excel I can then run a scan to look for which message reported the pass or fail of any specific message. The current way takes approximately 10 minutes per message and if you do the math I am WAY behind in an 8 hour day. &lt;/p&gt;
&lt;p&gt;thanks for any pointers that you might have about this. I am sure others would be interested in this type of automation. &lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, Not sure if this is the right place to ask this but I will anyway <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>In your automation code you use the line getnamespace(&#8220;MAPI&#8221;).getdefaultfolder(6).items(1).Subject</p>
<p>I have a situation where what I want exists in a sub, sub folder.</p>
<p>I am using Office 2003</p>
<p>If i set Folder = subFolder it breaks. </p>
<p>The complete problem is that I recieve 42 emails an hour that contain information that I have to act on, in case of a fail I need to know immediately. </p>
<p>There is a set policy that these emails will exist in a certain email box for backing up and standardization.</p>
<p>The structure is My Email-&gt;Inbox -&gt; Clients -&gt; ClientName -&gt;Report for Client</p>
<p>Note: there is a further subFolder called Processed that the files are stored in once I act on them.</p>
<p>The email contains a standard file name with the date and time appended.</p>
<p>The contents of the message contains two things<br />
First is a series of lines that contain the following:<br />
=_ _ REPORT: Emails_XXXXXXXXXXXX_filename.zip.pgp is being moved to HOLD,</p>
<p>The # of X&#8217;s can change as it is a customer generated message serial number. The _filename.zip.pgp is constant as is the leading = _ _ REPORT: and work Emails.</p>
<p>The second part of the message contains the lines like:<br />
 REPORT: confirms, , 0, 0, 0<br />
and<br />
 REPORT: decrypt EMAILS_20041122_2844_20041122121948359.zip.pgp FAIL!</p>
<p>In the first example (confirms) the commas seperate fields that contain information. </p>
<p>When that particular file is processed if it is successfull the zero values are poplated with text and other numbers like file size in megabytes.</p>
<p>What I am trying to automate is the creation of an excel spreadsheet that will do the following.</p>
<p>1)Scan my Outlook to the Report for Client subFolder.<br />
2)Select the first message, and extract its contents to Excel.<br />
3)Capture:<br />
  a)the datetime received stamp built into Outlook<br />
  b)message subject<br />
  c)sender (which is always the same but I need to<br />
  capture if that changes)<br />
  d)each line of the message body<br />
  e)loop through the sheet for the NEXT row to insert this block of information<br />
  F)create a new row in excel for each line from the message. Note:it would be nice to parse out the = _ _ characters before it hits excel.<br />
  G) move back to outlook and move the first message to the processed folder<br />
  H)move to the next message if it exists.</p>
<p>each line in the email must live on a seperate seperate row with all the captured information about the email. </p>
<p>Once I get it into excel I can then run a scan to look for which message reported the pass or fail of any specific message. The current way takes approximately 10 minutes per message and if you do the math I am WAY behind in an 8 hour day. </p>
<p>thanks for any pointers that you might have about this. I am sure others would be interested in this type of automation. </p>
<p>Mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>

