<?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: Line Continuation Limit</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/</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: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-28525</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 07 Nov 2007 17:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-28525</guid>
		<description>&lt;p&gt;Rob -&lt;/p&gt;
&lt;p&gt;I was not aware of this capability. Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Rob -</p>
<p>I was not aware of this capability. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-28516</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Tue, 06 Nov 2007 21:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-28516</guid>
		<description>&lt;p&gt;Jon: The VBA compiler is smart enough to allow consts to be dependent on previously defined consts.&lt;br&gt;
This technique is quite handy for creating bitmask consts.&lt;/p&gt;
&lt;p&gt;You can write code to impress your friends&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;kw1&quot;&gt;Private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Const&lt;/span&gt; gstr1 &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&quot;Your VBA version is &quot;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
#If VBA6 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Const&lt;/span&gt; gstr2 &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt; = gstr1 &amp; &lt;span class=&quot;st0&quot;&gt;&quot;VBA6.&quot;&lt;/span&gt;&lt;br&gt;
#Else&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Const&lt;/span&gt; gstr2 &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt; = gstr1 &amp; &lt;span class=&quot;st0&quot;&gt;&quot;not VBA6.&quot;&lt;/span&gt;&lt;br&gt;
#End &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; test()&lt;br&gt;
&#160; &#160; MsgBox gstr2&lt;br&gt;
&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Jon: The VBA compiler is smart enough to allow consts to be dependent on previously defined consts.<br />
This technique is quite handy for creating bitmask consts.</p>
<p>You can write code to impress your friends</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Private</span> <span class="kw1">Const</span> gstr1 <span class="kw1">As</span> <span class="kw1">String</span> = <span class="st0">&#8220;Your VBA version is &#8220;</span></p>
<p>#If VBA6 <span class="kw1">Then</span><br />
&nbsp; &nbsp; <span class="kw1">Private</span> <span class="kw1">Const</span> gstr2 <span class="kw1">As</span> <span class="kw1">String</span> = gstr1 &amp;amp; <span class="st0">&#8220;VBA6.&#8221;</span><br />
#Else<br />
&nbsp; &nbsp; <span class="kw1">Private</span> <span class="kw1">Const</span> gstr2 <span class="kw1">As</span> <span class="kw1">String</span> = gstr1 &amp;amp; <span class="st0">&#8220;not VBA6.&#8221;</span><br />
#End <span class="kw1">If</span></p>
<p><span class="kw1">Sub</span> test()<br />
&nbsp; &nbsp; MsgBox gstr2</p>
<p><span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-28446</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Sat, 03 Nov 2007 15:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-28446</guid>
		<description>&lt;p&gt;Fencliff -&lt;/p&gt;
&lt;p&gt;Are you confusing constants with variables?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Fencliff -</p>
<p>Are you confusing constants with variables?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-28428</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Fri, 02 Nov 2007 18:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-28428</guid>
		<description>&lt;p&gt;Joshua -&lt;/p&gt;
&lt;p&gt;The SQL query is just a string, right? You can create that string however you want. Did you split the line into multiple commands, as in Dick&#039;s example?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Joshua -</p>
<p>The SQL query is just a string, right? You can create that string however you want. Did you split the line into multiple commands, as in Dick&#8217;s example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fencliff</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-28427</link>
		<dc:creator>Fencliff</dc:creator>
		<pubDate>Fri, 02 Nov 2007 17:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-28427</guid>
		<description>&lt;p&gt;Regarding the solution: &lt;/p&gt;
&lt;p&gt; * sString = &quot;My dog &quot;&lt;br&gt;
 * sString = sString &amp; &quot;has fleas.&quot;&lt;/p&gt;
&lt;p&gt;You said you were building a constant string? I don&#039;t think this kind of method would compile with constants, you&#039;d have to use and intermediary constant to build it.&lt;/p&gt;
&lt;p&gt; * Private Const gstr1 As String = &quot;My Dog &quot;&lt;br&gt;
 * Private Const gstr2 As String = gstr1 &amp; &quot;has fleas.&quot;&lt;/p&gt;
&lt;p&gt;In which case I think I would rather break my fanatic 80-column line requirement.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Regarding the solution: </p>
<p> * sString = &#8220;My dog &#8220;<br />
 * sString = sString &amp; &#8220;has fleas.&#8221;</p>
<p>You said you were building a constant string? I don&#8217;t think this kind of method would compile with constants, you&#8217;d have to use and intermediary constant to build it.</p>
<p> * Private Const gstr1 As String = &#8220;My Dog &#8220;<br />
 * Private Const gstr2 As String = gstr1 &amp; &#8220;has fleas.&#8221;</p>
<p>In which case I think I would rather break my fanatic 80-column line requirement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-28411</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Fri, 02 Nov 2007 10:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-28411</guid>
		<description>&lt;p&gt;Yes, it&#039;s really sucks how VB limits on how many line continuations to use. I have a very long SQL query which means I will need a lot of line continuations, but I ran into this error. Really sucks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yes, it&#8217;s really sucks how VB limits on how many line continuations to use. I have a very long SQL query which means I will need a lot of line continuations, but I ran into this error. Really sucks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-20956</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Mon, 18 Sep 2006 10:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-20956</guid>
		<description>&lt;p&gt;This sort of &quot;lacking explanation&quot; error messages remind me of 2 other MS bugs (sorry, functionalities) that make you waste half an hour in debugging until you realise the true meaning of the error and correct it in a few seconds:&lt;/p&gt;
&lt;p&gt;- Excel automatation through VB6: Work on Column 255, then Column = Column + 1. Excel raises an error to the tune of &quot;Excel cannot carry out the specified command&quot; (or somthing like this). No mention why or no note of the 255 column limit...&lt;/p&gt;
&lt;p&gt;- MS Access 2000 and over: Play with a access and hit 2 Gb during a query. Access will inform you that there is some sort of (random) error with your query, but nothing on the real error like the query could not complete and/or that Access has reached it&#039;s maximum filesize limit of 2 gb and you need to delete data or compact the database to continue...&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br&gt;
Daniel&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This sort of &#8220;lacking explanation&#8221; error messages remind me of 2 other MS bugs (sorry, functionalities) that make you waste half an hour in debugging until you realise the true meaning of the error and correct it in a few seconds:</p>
<p>- Excel automatation through VB6: Work on Column 255, then Column = Column + 1. Excel raises an error to the tune of &#8220;Excel cannot carry out the specified command&#8221; (or somthing like this). No mention why or no note of the 255 column limit&#8230;</p>
<p>- MS Access 2000 and over: Play with a access and hit 2 Gb during a query. Access will inform you that there is some sort of (random) error with your query, but nothing on the real error like the query could not complete and/or that Access has reached it&#8217;s maximum filesize limit of 2 gb and you need to delete data or compact the database to continue&#8230;</p>
<p>Cheers,<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Surf</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-19248</link>
		<dc:creator>Web Surf</dc:creator>
		<pubDate>Wed, 22 Mar 2006 20:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-19248</guid>
		<description>&lt;p&gt;I wrote some code in XL 2003 and VBA, &lt;/p&gt;
&lt;p&gt;My users with XL 97 reported &quot;compile error in hidden module&quot;&lt;/p&gt;
&lt;p&gt;I tried saving my file as XL 97, it just said &quot;File not saved&quot;&lt;/p&gt;
&lt;p&gt;After 2 days, I narrowed it down to the fact that different XLs have different allowed number of line continuations.&lt;/p&gt;
&lt;p&gt;Gawd I wish the error messages made a bit more sense. Like maybe a line number where the error took place ? Or plain english error messages like &quot;Too many line continuations&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I wrote some code in XL 2003 and VBA, </p>
<p>My users with XL 97 reported &#8220;compile error in hidden module&#8221;</p>
<p>I tried saving my file as XL 97, it just said &#8220;File not saved&#8221;</p>
<p>After 2 days, I narrowed it down to the fact that different XLs have different allowed number of line continuations.</p>
<p>Gawd I wish the error messages made a bit more sense. Like maybe a line number where the error took place ? Or plain english error messages like &#8220;Too many line continuations&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-11301</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Thu, 21 Apr 2005 08:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-11301</guid>
		<description>&lt;p&gt;Have you ever tried this site &lt;a href=&quot;http://rafb.net/paste/&quot; rel=&quot;nofollow&quot;&gt;http://rafb.net/paste/&lt;/a&gt; for posting code to newsgroups?&lt;/p&gt;
&lt;p&gt;Here is an example:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://rafb.net/paste/results/D1D7V491.html&quot; rel=&quot;nofollow&quot;&gt;http://rafb.net/paste/results/D1D7V491.html&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Have you ever tried this site <a href="http://rafb.net/paste/" rel="nofollow">http://rafb.net/paste/</a> for posting code to newsgroups?</p>
<p>Here is an example:</p>
<p><a href="http://rafb.net/paste/results/D1D7V491.html" rel="nofollow">http://rafb.net/paste/results/D1D7V491.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/18/line-continuation-limit/#comment-11129</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Tue, 19 Apr 2005 07:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1093#comment-11129</guid>
		<description>&lt;p&gt;Depending on which version of Excel you use, the line continuations limit is less.&lt;br&gt;
See &lt;a href=&quot;http://support.microsoft.com/?kbid=141513&quot; rel=&quot;nofollow&quot;&gt;MSKB 141513&lt;/a&gt; for the beef.&lt;/p&gt;
&lt;p&gt;Occasionally I&#039;ll maintain workbooks with screens of SQL embedded in the VB code module. The line continuation situation gets pretty annoying then.&lt;/p&gt;
&lt;p&gt;Space followed by underscore followed by newline = ignore. That&#039;s easier to program than a limit (plus the lame error message).&lt;/p&gt;
&lt;p&gt;...I imagine theres a VBA developer somewhere in Redmond, reading this, cackling to themselves while they mark New Zealand on their &quot;world map of line continuation victims&quot;...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Depending on which version of Excel you use, the line continuations limit is less.<br />
See <a href="http://support.microsoft.com/?kbid=141513" rel="nofollow">MSKB 141513</a> for the beef.</p>
<p>Occasionally I&#8217;ll maintain workbooks with screens of SQL embedded in the VB code module. The line continuation situation gets pretty annoying then.</p>
<p>Space followed by underscore followed by newline = ignore. That&#8217;s easier to program than a limit (plus the lame error message).</p>
<p>&#8230;I imagine theres a VBA developer somewhere in Redmond, reading this, cackling to themselves while they mark New Zealand on their &#8220;world map of line continuation victims&#8221;&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

