<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Plymouth Design Group</title>
	<atom:link href="http://plymdesign.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://plymdesign.com</link>
	<description></description>
	<lastBuildDate>Thu, 25 Jun 2009 17:15:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Project: Mail Merge for Macintosh Excel 2004</title>
		<link>http://plymdesign.com/projects/project-mail-merge-for-macintosh-excel-2004/</link>
		<comments>http://plymdesign.com/projects/project-mail-merge-for-macintosh-excel-2004/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 16:33:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://plymdesign.com/wp/?p=41</guid>
		<description><![CDATA[Fairhaven Health asked us to streamline the daily processing of orders by automating tasks in their Excel spreadsheet.
Their requests were a straightforward project for Windows Excel, but a much more complex solution was required to work in their Macintosh Excel 2004 environment.
Their existing procedure involved several steps:
(1) importing an order file from each of several [...]]]></description>
			<content:encoded><![CDATA[<p>Fairhaven Health asked us to streamline the daily processing of orders by automating tasks in their Excel spreadsheet.<br />
Their requests were a straightforward project for Windows Excel, but a much more complex solution was required to work in their Macintosh Excel 2004 environment.</p>
<p>Their existing procedure involved several steps:</p>
<p>(1) importing an order file from each of several sources into an Excel 2004 spreadsheet<br />
(2) sorting to find duplicate addresses<br />
(3) generating a new worksheet with orders combined from all sources<br />
(4) constructing new columns such as the total cost and a barcode<br />
(5) saving the resulting spreadsheet as a source for mail merges in Word 2004 to generate invoices and labels</p>
<p>The procedure was partially automated &#8212; they already had a template spreadsheet with formulas for the new columns, along with some VBA macros.  Our task was to refine the process and make it more robust.</p>
<p>We first developed a VBA macro to automate the entire process.  Under the new scheme, we store the order<br />
files with fixed names, in a folder based on the date.  We then run this new macro which does all the necessary importing, sorting, combining and saving.</p>
<p>Here are some specific changes and improvements that we implemented:</p>
<p>(1) Data Validation: The existing spreadsheet imported zip codes as numbers, with the result that leading zeroes were<br />
dropped.  The new macro explicitly imports the zip code column as text.</p>
<p>(2) Code Optimization: The existing spreadsheet had formulas to build the new columns, presuming a certain maximum<br />
number of rows.  The new macro builds the needed columns for just as many rows as are actually present.</p>
<p>(3) Error Trapping: Some orders are paid with PayPal and have authorization but no transaction ID.  If the client didn&#8217;t catch this omission, he doesn&#8217;t get paid for that order.  The new macro counts the PayPal authorizations and transaction IDs, with the transaction ID count highlighted in red if it doesn&#8217;t match the authorization count.</p>
<p>(4) Error Trapping: For international orders, the country name is found by looking up the country code in a table. We added an error trap to the macro in case the country code is not found.</p>
<p>(5) The existing procedure involved saving the worksheet as tab-delimited text to generate a file to be uploaded to mark orders as shipped.  This worked fine except that the last line was missing the end-of-line character (CR).  He had to edit the file manually and insert a CR at the end, or else the last line wouldn&#8217;t be processed.  The new macro solves this problem by building the file directly with VBA file I/O.</p>
]]></content:encoded>
			<wfw:commentRss>http://plymdesign.com/projects/project-mail-merge-for-macintosh-excel-2004/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
