<?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: Learn VBA to be Lean</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/</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: Antony Boyle</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-57363</link>
		<dc:creator>Antony Boyle</dc:creator>
		<pubDate>Wed, 19 Jan 2011 11:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-57363</guid>
		<description>&lt;p&gt;Steven Hackman,  if you email me (antony dot boyle hat gmail dot company) then I&#039;ll send you my code for exporting data into google earth. it is full of green comments so you should be able to follow it. I have got it to do the following:&lt;/p&gt;
&lt;p&gt;draw pushpins with description boxes&lt;br&gt;
draw lines/paths&lt;br&gt;
draw polygons&lt;br&gt;
draw circles of a set radius around a pushpin&lt;/p&gt;
&lt;p&gt;my biggest achievement with goodle earth is plotting data in a colour changing line, where the colour related to some data value in excel. &lt;/p&gt;
&lt;p&gt;here&#039;s a few snippets for writing KML in VB (assuming you have a file open with a handle #intKMLFile)&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;co1&quot;&gt;&#039;set up KML Header&lt;br&gt;
&lt;/span&gt; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;?xml version=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot; encoding=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;UTF-8&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;?&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;kml xmlns=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;http://earth.google.com/kml/2.0&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Document&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;name&gt;&quot;&lt;/span&gt; &amp; Format(&lt;span class=&quot;kw1&quot;&gt;Date&lt;/span&gt;(), &lt;span class=&quot;st0&quot;&gt;&quot;dd/mm/yyyy&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot; GPS/GSM Quality Data&lt;/name&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;open&gt;1&lt;/open&gt;&quot;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;&#039;folder open by default&lt;br&gt;
&lt;/span&gt; &#160; &#160;&lt;span class=&quot;co1&quot;&gt;&#039;folder radio buttons...&lt;br&gt;
&lt;/span&gt; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Style&gt;&lt;ListStyle&gt; &lt;listItemType&gt;radioFolder&lt;/listItemType&gt; &lt;/ListStyle&gt;&lt;/Style&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile,&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;set up line styles&lt;br&gt;
&lt;/span&gt; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Style id=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;Qual00&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&gt; &lt;LineStyle&gt; &lt;color&gt;ff0000ff&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Style id=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;Qual02&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&gt; &lt;LineStyle&gt; &lt;color&gt;ff0066ff&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Style id=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;Qual04&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&gt; &lt;LineStyle&gt; &lt;color&gt;ff00ccff&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Style id=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;Qual06&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&gt; &lt;LineStyle&gt; &lt;color&gt;ff00ffcc&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Style id=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;Qual08&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&gt; &lt;LineStyle&gt; &lt;color&gt;ff00ff66&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Style id=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;Qual10&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&gt; &lt;LineStyle&gt; &lt;color&gt;ff00ff00&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Style id=&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;BadGPS&quot;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&quot;&gt; &lt;IconStyle&gt; &lt;color&gt;ff0000ff&lt;/color&gt; &lt;scale&gt;1.5&lt;/scale&gt; &lt;Icon&gt;&lt;href&gt;http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png&lt;/href&gt;&lt;/Icon&gt; &lt;/IconStyle&gt; &lt;LabelStyle&gt;&lt;scale&gt;0.5&lt;/scale&gt;&lt;/LabelStyle&gt; &lt;/Style&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile,&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;make folder&lt;br&gt;
&lt;/span&gt; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Folder&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;name&gt;&quot;&lt;/span&gt; &amp; strFolderName &amp; &lt;span class=&quot;st0&quot;&gt;&quot;&lt;/name&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;open&gt;0&lt;/open&gt;&quot;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;&#039;folder collapsed by default&lt;br&gt;
&lt;/span&gt; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Style&gt;&lt;ListStyle&gt; &lt;listItemType&gt;checkHideChildren&lt;/listItemType&gt; &lt;/ListStyle&gt;&lt;/Style&gt;&quot;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;&#039;individual line segments hidden by default&lt;br&gt;
&lt;/span&gt; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;Placemark&gt; &lt;styleUrl&gt;#&quot;&lt;/span&gt; &amp; strLinetype &amp; &lt;span class=&quot;st0&quot;&gt;&quot;&lt;/styleUrl&gt; &lt;LineString&gt; &lt;name&gt;&quot;&lt;/span&gt; &amp; strLineName &amp; &lt;span class=&quot;st0&quot;&gt;&quot;&lt;/name&gt; &lt;coordinates&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, Format(dblLon1, &lt;span class=&quot;st0&quot;&gt;&quot;0.0######&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot;,&quot;&lt;/span&gt; &amp; Format(dblLat1, &lt;span class=&quot;st0&quot;&gt;&quot;0.0######&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, Format(dblLon2, &lt;span class=&quot;st0&quot;&gt;&quot;0.0######&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot;,&quot;&lt;/span&gt; &amp; Format(dblLat2, &lt;span class=&quot;st0&quot;&gt;&quot;0.0######&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, Format(dblLon3, &lt;span class=&quot;st0&quot;&gt;&quot;0.0######&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot;,&quot;&lt;/span&gt; &amp; Format(dblLat3, &lt;span class=&quot;st0&quot;&gt;&quot;0.0######&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;/coordinates&gt; &lt;/LineString&gt; &lt;/Placemark&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;/Folder&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile,&lt;br&gt;
&lt;br&gt;
&#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;end KML document&lt;br&gt;
&lt;/span&gt; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;/Document&gt;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; #intKMLFile, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;/kml&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Steven Hackman,  if you email me (antony dot boyle hat gmail dot company) then I&#8217;ll send you my code for exporting data into google earth. it is full of green comments so you should be able to follow it. I have got it to do the following:</p>
<p>draw pushpins with description boxes<br />
draw lines/paths<br />
draw polygons<br />
draw circles of a set radius around a pushpin</p>
<p>my biggest achievement with goodle earth is plotting data in a colour changing line, where the colour related to some data value in excel. </p>
<p>here&#8217;s a few snippets for writing KML in VB (assuming you have a file open with a handle #intKMLFile)</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="co1">&#8216;set up KML Header<br />
</span> &nbsp; &nbsp;<span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;?xml version=&#8221;</span><span class="st0">&#8220;1.0&#8243;</span><span class="st0">&#8221; encoding=&#8221;</span><span class="st0">&#8220;UTF-8&#8243;</span><span class="st0">&#8220;?&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;kml xmlns=&#8221;</span><span class="st0">&#8220;http://earth.google.com/kml/2.0&#8243;</span><span class="st0">&#8220;&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Document&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;name&gt;&#8221;</span> &amp; Format(<span class="kw1">Date</span>(), <span class="st0">&#8220;dd/mm/yyyy&#8221;</span>) &amp; <span class="st0">&#8221; GPS/GSM Quality Data&lt;/name&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;open&gt;1&lt;/open&gt;&#8221;</span> <span class="co1">&#8216;folder open by default<br />
</span> &nbsp; &nbsp;<span class="co1">&#8216;folder radio buttons&#8230;<br />
</span> &nbsp; &nbsp;<span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Style&gt;&lt;ListStyle&gt; &lt;listItemType&gt;radioFolder&lt;/listItemType&gt; &lt;/ListStyle&gt;&lt;/Style&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile,<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="co1">&#8216;set up line styles<br />
</span> &nbsp; &nbsp;<span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Style id=&#8221;</span><span class="st0">&#8220;Qual00&#8243;</span><span class="st0">&#8220;&gt; &lt;LineStyle&gt; &lt;color&gt;ff0000ff&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Style id=&#8221;</span><span class="st0">&#8220;Qual02&#8243;</span><span class="st0">&#8220;&gt; &lt;LineStyle&gt; &lt;color&gt;ff0066ff&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Style id=&#8221;</span><span class="st0">&#8220;Qual04&#8243;</span><span class="st0">&#8220;&gt; &lt;LineStyle&gt; &lt;color&gt;ff00ccff&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Style id=&#8221;</span><span class="st0">&#8220;Qual06&#8243;</span><span class="st0">&#8220;&gt; &lt;LineStyle&gt; &lt;color&gt;ff00ffcc&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Style id=&#8221;</span><span class="st0">&#8220;Qual08&#8243;</span><span class="st0">&#8220;&gt; &lt;LineStyle&gt; &lt;color&gt;ff00ff66&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Style id=&#8221;</span><span class="st0">&#8220;Qual10&#8243;</span><span class="st0">&#8220;&gt; &lt;LineStyle&gt; &lt;color&gt;ff00ff00&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Style id=&#8221;</span><span class="st0">&#8220;BadGPS&#8221;</span><span class="st0">&#8220;&gt; &lt;IconStyle&gt; &lt;color&gt;ff0000ff&lt;/color&gt; &lt;scale&gt;1.5&lt;/scale&gt; &lt;Icon&gt;&lt;href&gt;<a href="http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png&lt;/href&gt;&lt;/Icon&#038;gt" rel="nofollow">http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png&lt;/href&gt;&lt;/Icon&#038;gt</a>; &lt;/IconStyle&gt; &lt;LabelStyle&gt;&lt;scale&gt;0.5&lt;/scale&gt;&lt;/LabelStyle&gt; &lt;/Style&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile,</p>
<p>
&nbsp; &nbsp; <span class="co1">&#8216;make folder<br />
</span> &nbsp; &nbsp;<span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Folder&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;name&gt;&#8221;</span> &amp; strFolderName &amp; <span class="st0">&#8220;&lt;/name&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;open&gt;0&lt;/open&gt;&#8221;</span> <span class="co1">&#8216;folder collapsed by default<br />
</span> &nbsp; &nbsp;<span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Style&gt;&lt;ListStyle&gt; &lt;listItemType&gt;checkHideChildren&lt;/listItemType&gt; &lt;/ListStyle&gt;&lt;/Style&gt;&#8221;</span> <span class="co1">&#8216;individual line segments hidden by default<br />
</span> &nbsp; &nbsp;<span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;Placemark&gt; &lt;styleUrl&gt;#&#8221;</span> &amp; strLinetype &amp; <span class="st0">&#8220;&lt;/styleUrl&gt; &lt;LineString&gt; &lt;name&gt;&#8221;</span> &amp; strLineName &amp; <span class="st0">&#8220;&lt;/name&gt; &lt;coordinates&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, Format(dblLon1, <span class="st0">&#8220;0.0######&#8221;</span>) &amp; <span class="st0">&#8220;,&#8221;</span> &amp; Format(dblLat1, <span class="st0">&#8220;0.0######&#8221;</span>) &amp; <span class="st0">&#8221; &#8220;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, Format(dblLon2, <span class="st0">&#8220;0.0######&#8221;</span>) &amp; <span class="st0">&#8220;,&#8221;</span> &amp; Format(dblLat2, <span class="st0">&#8220;0.0######&#8221;</span>) &amp; <span class="st0">&#8221; &#8220;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, Format(dblLon3, <span class="st0">&#8220;0.0######&#8221;</span>) &amp; <span class="st0">&#8220;,&#8221;</span> &amp; Format(dblLat3, <span class="st0">&#8220;0.0######&#8221;</span>) &amp; <span class="st0">&#8221; &#8220;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;/coordinates&gt; &lt;/LineString&gt; &lt;/Placemark&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;/Folder&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile,</p>
<p>&nbsp; &nbsp; <span class="co1">&#8216;end KML document<br />
</span> &nbsp; &nbsp;<span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;/Document&gt;&#8221;</span><br />
&nbsp; &nbsp; <span class="kw1">Print</span> #intKMLFile, <span class="st0">&#8220;&lt;/kml&gt;&#8221;</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Hackman</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-57322</link>
		<dc:creator>Steven Hackman</dc:creator>
		<pubDate>Tue, 18 Jan 2011 16:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-57322</guid>
		<description>&lt;p&gt;I have job that required me to get Excel data into Google Earth® and started by finding bits of code and then modifying them (with various degrees of success!). &lt;/p&gt;
&lt;p&gt;I am not a programmer.&lt;/p&gt;
&lt;p&gt;I had managed to &quot;do the job&quot; after a fashion but had not properly understood how I got there.&lt;/p&gt;
&lt;p&gt;Metaphorically I found myself halfway up a mountain when my programming skills would barely see me through the foothills in reality.&lt;/p&gt;
&lt;p&gt;Your page has helped and encouraged me tremendously - Everest here I come!&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have job that required me to get Excel data into Google Earth® and started by finding bits of code and then modifying them (with various degrees of success!). </p>
<p>I am not a programmer.</p>
<p>I had managed to &#8220;do the job&#8221; after a fashion but had not properly understood how I got there.</p>
<p>Metaphorically I found myself halfway up a mountain when my programming skills would barely see me through the foothills in reality.</p>
<p>Your page has helped and encouraged me tremendously &#8211; Everest here I come!</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viral Differentiation  Another Great Site « Lean Execution  Intelligent Metrics</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-47226</link>
		<dc:creator>Viral Differentiation  Another Great Site « Lean Execution  Intelligent Metrics</dc:creator>
		<pubDate>Tue, 22 Jun 2010 08:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-47226</guid>
		<description>&lt;p&gt;[...] We learned of this site through a comment posted by Rob on Daily Dose of Excel (another one of our preferred sites worth visiting on regular basis). DailyDoseOfExcel recently featured a portion of our post &quot;Lean Office with Excel and VBA&quot; as a discussion topic that also yielded some interesting discussion.Â Â Click here to view Learn VBA to Be Lean. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] We learned of this site through a comment posted by Rob on Daily Dose of Excel (another one of our preferred sites worth visiting on regular basis). DailyDoseOfExcel recently featured a portion of our post &#8220;Lean Office with Excel and VBA&#8221; as a discussion topic that also yielded some interesting discussion.Â Â Click here to view Learn VBA to Be Lean. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yung</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-42506</link>
		<dc:creator>yung</dc:creator>
		<pubDate>Wed, 02 Dec 2009 05:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-42506</guid>
		<description>&lt;p&gt;I took an online VBA course a while back, but I need to practice so I can understand it more. I really liked it and have applied some of it to my work. I&#039;d love to see what these lessons are and to use it so I can learn more of it.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I took an online VBA course a while back, but I need to practice so I can understand it more. I really liked it and have applied some of it to my work. I&#8217;d love to see what these lessons are and to use it so I can learn more of it.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Contextures Blog » Excel VBA Edit Your Recorded Macro</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-42420</link>
		<dc:creator>Contextures Blog » Excel VBA Edit Your Recorded Macro</dc:creator>
		<pubDate>Fri, 27 Nov 2009 06:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-42420</guid>
		<description>&lt;p&gt;[...] week was Recruit a New VBA Programmer Week, so we pitched in by recording an Excel macro, and running it. I&#039;ve updated that article, by [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] week was Recruit a New VBA Programmer Week, so we pitched in by recording an Excel macro, and running it. I&#8217;ve updated that article, by [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Jordin</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-42382</link>
		<dc:creator>James Jordin</dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-42382</guid>
		<description>&lt;p&gt;@Redge Semplonius: too true, it&#039;s surprising that there isn&#039;t more focus on a lean office. Most of our lean practitioners are office-based; you&#039;d think they would want to make their own lives easier as well as others&#039;!&lt;/p&gt;
&lt;p&gt;@gruff999: John Seddon should be knighted! Cheers for the link, I know his work but I&#039;ve not visited his site. Looks like a good resource.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Redge Semplonius: too true, it&#8217;s surprising that there isn&#8217;t more focus on a lean office. Most of our lean practitioners are office-based; you&#8217;d think they would want to make their own lives easier as well as others&#8217;!</p>
<p>@gruff999: John Seddon should be knighted! Cheers for the link, I know his work but I&#8217;ve not visited his site. Looks like a good resource.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Engwirda</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-42369</link>
		<dc:creator>Andrew Engwirda</dc:creator>
		<pubDate>Mon, 23 Nov 2009 23:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-42369</guid>
		<description>&lt;p&gt;Funny, I ran a VBA training course yesterday just like Ken did :-)&lt;/p&gt;
&lt;p&gt;J-Walk got me interested in learning more about Excel after visiting his site. Then I saw this blog and decided to really go for it.&lt;/p&gt;
&lt;p&gt;I read the Dummies book, then I read Power Programming. I recommend both, the latter is in my desk drawer and I refer to it often.&lt;/p&gt;
&lt;p&gt;Absolutely agree the best way to learn is hands on, there&#039;s heaps of resources to help get started.&lt;/p&gt;
&lt;p&gt;Here&#039;s to a new generation of Excel dudes!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Funny, I ran a VBA training course yesterday just like Ken did <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>J-Walk got me interested in learning more about Excel after visiting his site. Then I saw this blog and decided to really go for it.</p>
<p>I read the Dummies book, then I read Power Programming. I recommend both, the latter is in my desk drawer and I refer to it often.</p>
<p>Absolutely agree the best way to learn is hands on, there&#8217;s heaps of resources to help get started.</p>
<p>Here&#8217;s to a new generation of Excel dudes!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spike</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-42330</link>
		<dc:creator>Spike</dc:creator>
		<pubDate>Sat, 21 Nov 2009 17:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-42330</guid>
		<description>&lt;p&gt;John Walkenbach, I taught myself VBA from your book Excel 2000 Power Programming with VBA. I&#039;m a CS guy, and was able to take old macros and re-engineer them from run times of twenty minutes down to 3 to 5 seconds! I was amazed at the power of VBA. Just so you know, your book really helped me. Are you coming out with another? My understanding is VBA for Excel 2007 is syntactically different. Also, does anyone know how to access an excel file (not Sharepoint) on a web server through VBA code? (sorry if this is the wrong place to ask, I&#039;m a newbie here)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>John Walkenbach, I taught myself VBA from your book Excel 2000 Power Programming with VBA. I&#8217;m a CS guy, and was able to take old macros and re-engineer them from run times of twenty minutes down to 3 to 5 seconds! I was amazed at the power of VBA. Just so you know, your book really helped me. Are you coming out with another? My understanding is VBA for Excel 2007 is syntactically different. Also, does anyone know how to access an excel file (not Sharepoint) on a web server through VBA code? (sorry if this is the wrong place to ask, I&#8217;m a newbie here)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gruff999</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-42326</link>
		<dc:creator>gruff999</dc:creator>
		<pubDate>Sat, 21 Nov 2009 15:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-42326</guid>
		<description>&lt;p&gt;I&#039;ve been reading up around the TPS (Toyota Production System). Specifically a U.K. based guy called John Seddon (http://www.systemsthinking.co.uk/home.asp) who has taken the principles of TPS and applied them to the public services (Local Authorities, Police etc).&lt;/p&gt;
&lt;p&gt;I bought his book &quot;Systems Thinking in the Public Sector&quot; after reading about his work on the popular U.K. &quot;Inspector Gadget&quot; police blog  (http://inspectorgadget.wordpress.com/). In Britain everything seems to be run the same way, and it&#039;s NOT the TPS way!.&lt;/p&gt;
&lt;p&gt;The alternatives, though straightforward and logical, have fallen from living memory and from the cultural landscape. Everyone seemingly accepting that there isn&#039;t a better way to do things.&lt;/p&gt;
&lt;p&gt;He makes some painful (eye-watering!) observations about how systems are simply set up and designed to fail and be more costly, usually in the name of efficiency savings. I found it difficult to challenge his logic or evidence.&lt;/p&gt;
&lt;p&gt;But the alternatives are maybe more scary than doing the &#039;wrong thing for the right reasons&#039;?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been reading up around the TPS (Toyota Production System). Specifically a U.K. based guy called John Seddon (<a href="http://www.systemsthinking.co.uk/home.asp" rel="nofollow">http://www.systemsthinking.co.uk/home.asp</a>) who has taken the principles of TPS and applied them to the public services (Local Authorities, Police etc).</p>
<p>I bought his book &#8220;Systems Thinking in the Public Sector&#8221; after reading about his work on the popular U.K. &#8220;Inspector Gadget&#8221; police blog  (<a href="http://inspectorgadget.wordpress.com/" rel="nofollow">http://inspectorgadget.wordpress.com/</a>). In Britain everything seems to be run the same way, and it&#8217;s NOT the TPS way!.</p>
<p>The alternatives, though straightforward and logical, have fallen from living memory and from the cultural landscape. Everyone seemingly accepting that there isn&#8217;t a better way to do things.</p>
<p>He makes some painful (eye-watering!) observations about how systems are simply set up and designed to fail and be more costly, usually in the name of efficiency savings. I found it difficult to challenge his logic or evidence.</p>
<p>But the alternatives are maybe more scary than doing the &#8216;wrong thing for the right reasons&#8217;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gruff999</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/11/18/learn-vba-to-be-lean/#comment-42325</link>
		<dc:creator>gruff999</dc:creator>
		<pubDate>Sat, 21 Nov 2009 15:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3256#comment-42325</guid>
		<description>&lt;p&gt;I like to think I know my limitations. I know how much time and effort I&#039;m willing to invest and I&#039;ll push the envelope if there is a payback on the end.&lt;/p&gt;
&lt;p&gt;I did HTML, leading to a brief dabble with JavaScript then to web VBScript, ASP, Excel VBA along the way (recorded macros to edited macros to direct coding), batch files, standlone VBScripts (Windows Script Host). Word macros and a dip into Outlook macros. After a while you start to learn important skills that cross-over the technologies.&lt;/p&gt;
&lt;p&gt;To be completely honest there was a second motivation for the Excel VBA. A guy at work who, though not exactly the &#039;go to&#039; guy, was known as someone who got things done. I started to suspect there was more brute force trial and error than skillful insight at play in his solutions. They worked, but he didn&#039;t know exactly why or how, but was happy to let people think he knew. That didn&#039;t sit well with me and I reckoned I could do better, and I would then know if his rep was well founded or not.&lt;/p&gt;
&lt;p&gt;Sad but true.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I like to think I know my limitations. I know how much time and effort I&#8217;m willing to invest and I&#8217;ll push the envelope if there is a payback on the end.</p>
<p>I did HTML, leading to a brief dabble with JavaScript then to web VBScript, ASP, Excel VBA along the way (recorded macros to edited macros to direct coding), batch files, standlone VBScripts (Windows Script Host). Word macros and a dip into Outlook macros. After a while you start to learn important skills that cross-over the technologies.</p>
<p>To be completely honest there was a second motivation for the Excel VBA. A guy at work who, though not exactly the &#8216;go to&#8217; guy, was known as someone who got things done. I started to suspect there was more brute force trial and error than skillful insight at play in his solutions. They worked, but he didn&#8217;t know exactly why or how, but was happy to let people think he knew. That didn&#8217;t sit well with me and I reckoned I could do better, and I would then know if his rep was well founded or not.</p>
<p>Sad but true.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

