<?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: Double Clicking Through a List</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2008/05/06/double-clicking-through-a-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2008/05/06/double-clicking-through-a-list/</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: sam</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/06/double-clicking-through-a-list/#comment-32237</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Fri, 09 May 2008 07:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1836#comment-32237</guid>
		<description>&lt;p&gt;&quot;P.S. Why is Target.Validation always something (that is, Not Nothing) even if the cell doesn&#039;t have validation?&quot;&lt;/p&gt;
&lt;p&gt;All cells in Excel are validated but with a validation type called &quot;Any Value&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;P.S. Why is Target.Validation always something (that is, Not Nothing) even if the cell doesn&#8217;t have validation?&#8221;</p>
<p>All cells in Excel are validated but with a validation type called &#8220;Any Value&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/06/double-clicking-through-a-list/#comment-32219</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Thu, 08 May 2008 05:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1836#comment-32219</guid>
		<description>&lt;p&gt;Since this is code critic, I&#039;d just like to point out you cannot use &quot;Not Nothing&quot; in code. It would result in a compilation error.&lt;/p&gt;
&lt;p&gt;    &#039; This will not compile&lt;br&gt;
    If obj Is Not Nothing Then MsgBox &quot;Hi&quot;&lt;/p&gt;
&lt;p&gt;    &#039; This will compile&lt;br&gt;
    If Not obj Is Nothing Then MsgBox &quot;Hi&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Since this is code critic, I&#8217;d just like to point out you cannot use &#8220;Not Nothing&#8221; in code. It would result in a compilation error.</p>
<p>    &#8216; This will not compile<br />
    If obj Is Not Nothing Then MsgBox &#8220;Hi&#8221;</p>
<p>    &#8216; This will compile<br />
    If Not obj Is Nothing Then MsgBox &#8220;Hi&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roger Govier</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/06/double-clicking-through-a-list/#comment-32209</link>
		<dc:creator>Roger Govier</dc:creator>
		<pubDate>Wed, 07 May 2008 17:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1836#comment-32209</guid>
		<description>&lt;p&gt;Great idea Dick, and nice amendment from Andy.&lt;br&gt;
this is very useful and something I will definitely make use of.&lt;br&gt;
Perfect for selecting/switching VAT codes on financial sheets.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great idea Dick, and nice amendment from Andy.<br />
this is very useful and something I will definitely make use of.<br />
Perfect for selecting/switching VAT codes on financial sheets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex J</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/06/double-clicking-through-a-list/#comment-32204</link>
		<dc:creator>Alex J</dc:creator>
		<pubDate>Wed, 07 May 2008 12:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1836#comment-32204</guid>
		<description>&lt;p&gt;Very Nice, Andy. (You too Dick!)I&#039;m going to drop this in my code today.&lt;br&gt;
Just one wrinkle for me: when I used a validation of True,False with direct entry, the &quot;oldValue&quot; variable was type boolean, and the match function failed against the &quot;VaList&quot; values of &quot;True&quot; and &quot;False&quot;. I modified &quot;oldValue&quot; to type String, and it worked, but I&#039;m not sure that this will work in all cases.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very Nice, Andy. (You too Dick!)I&#8217;m going to drop this in my code today.<br />
Just one wrinkle for me: when I used a validation of True,False with direct entry, the &#8220;oldValue&#8221; variable was type boolean, and the match function failed against the &#8220;VaList&#8221; values of &#8220;True&#8221; and &#8220;False&#8221;. I modified &#8220;oldValue&#8221; to type String, and it worked, but I&#8217;m not sure that this will work in all cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peder Schmedling</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/06/double-clicking-through-a-list/#comment-32202</link>
		<dc:creator>Peder Schmedling</dc:creator>
		<pubDate>Wed, 07 May 2008 11:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1836#comment-32202</guid>
		<description>&lt;p&gt;After replacing the occurrences of &quot;&gt;&quot; with &quot;&gt;&quot; this works flawlessly.&lt;/p&gt;
&lt;p&gt;Nice one with the &quot;Application.International(xlListSeparator)&quot;, much sleeker than the method I posted.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>After replacing the occurrences of &#8220;&amp;gt;&#8221; with &#8220;&gt;&#8221; this works flawlessly.</p>
<p>Nice one with the &#8220;Application.International(xlListSeparator)&#8221;, much sleeker than the method I posted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Pope</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/06/double-clicking-through-a-list/#comment-32199</link>
		<dc:creator>Andy Pope</dc:creator>
		<pubDate>Wed, 07 May 2008 09:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1836#comment-32199</guid>
		<description>&lt;p&gt;This variation of your code uses the MATCH function instead of looping through the items.&lt;/p&gt;
&lt;p&gt;If the users double clicks anything other than a range I don&#039;t believe the worksheet event will be fired.&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;Sub&lt;/span&gt; Worksheet_BeforeDoubleClick(&lt;span class=&quot;kw1&quot;&gt;ByVal&lt;/span&gt; Target &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range, Cancel &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Boolean&lt;/span&gt;)&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; vaList &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Variant&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; lngIndex &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; vOldValue &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Variant&lt;/span&gt;&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;On&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Error&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;GoTo&lt;/span&gt; ErrDoubleClick&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt; Target&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; .Validation.&lt;span class=&quot;kw1&quot;&gt;Type&lt;/span&gt; = xlValidateList &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Len(Target.Validation.Formula1) &gt; 0 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt; &#160;&lt;span class=&quot;co1&quot;&gt;&#039;only if the cell has dv&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Cancel = &lt;span class=&quot;kw1&quot;&gt;True&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;&#039;don&#039;t do the default action&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;vOldValue = Target.Value&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; vaList = GetValidList(.Validation.Formula1) &lt;span class=&quot;co1&quot;&gt;&#039;return single dim array&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Len(vOldValue) &gt; 0 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; lngIndex = Application.WorksheetFunction.Match(vOldValue, vaList, 0)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; lngIndex &gt; &lt;span class=&quot;kw1&quot;&gt;UBound&lt;/span&gt;(vaList) &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt; lngIndex = &lt;span class=&quot;kw1&quot;&gt;LBound&lt;/span&gt;(vaList) &lt;span class=&quot;co1&quot;&gt;&#039; return first item&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Target.Value = vaList(lngIndex)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;br&gt;
ErrDoubleClick:&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Exit&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;br&gt;
&#160; &#160; &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;br&gt;
&#160;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt; GetValidList(sForm &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;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Variant&lt;/span&gt;&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; vArr &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Variant&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; vaReturn &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Variant&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; lngIndex &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Left(sForm, 1) = &lt;span class=&quot;st0&quot;&gt;&quot;=&quot;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039; range/named range&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160;vArr = Evaluate(sForm)&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;ReDim&lt;/span&gt; vaReturn(0 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;UBound&lt;/span&gt;(vArr) - 1)&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; lngIndex = &lt;span class=&quot;kw1&quot;&gt;LBound&lt;/span&gt;(vaReturn) &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;UBound&lt;/span&gt;(vaReturn)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; vaReturn(lngIndex) = vArr(lngIndex + 1, 1)&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Else&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;for csv list&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160;vaReturn = Split(sForm, Application.International(xlListSeparator))&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; GetValidList = vaReturn&lt;br&gt;
&#160; &#160; &lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>This variation of your code uses the MATCH function instead of looping through the items.</p>
<p>If the users double clicks anything other than a range I don&#8217;t believe the worksheet event will be fired.</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">Sub</span> Worksheet_BeforeDoubleClick(<span class="kw1">ByVal</span> Target <span class="kw1">As</span> Range, Cancel <span class="kw1">As</span> <span class="kw1">Boolean</span>)<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> vaList <span class="kw1">As</span> <span class="kw1">Variant</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> lngIndex <span class="kw1">As</span> <span class="kw1">Long</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> vOldValue <span class="kw1">As</span> <span class="kw1">Variant</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">On</span> <span class="kw1">Error</span> <span class="kw1">GoTo</span> ErrDoubleClick<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">With</span> Target<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> .Validation.<span class="kw1">Type</span> = xlValidateList <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> Len(Target.Validation.Formula1) &amp;gt; 0 <span class="kw1">Then</span> &nbsp;<span class="co1">&#8216;only if the cell has dv<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Cancel = <span class="kw1">True</span> <span class="co1">&#8216;don&#8217;t do the default action<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vOldValue = Target.Value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vaList = GetValidList(.Validation.Formula1) <span class="co1">&#8216;return single dim array<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">If</span> Len(vOldValue) &amp;gt; 0 <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngIndex = Application.WorksheetFunction.Match(vOldValue, vaList, 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> lngIndex &amp;gt; <span class="kw1">UBound</span>(vaList) <span class="kw1">Then</span> lngIndex = <span class="kw1">LBound</span>(vaList) <span class="co1">&#8216; return first item<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Target.Value = vaList(lngIndex)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">With</span><br />
&nbsp; &nbsp; <br />
ErrDoubleClick:<br />
&nbsp; &nbsp; <span class="kw1">Exit</span> <span class="kw1">Sub</span><br />
&nbsp; &nbsp; <br />
<span class="kw1">End</span> <span class="kw1">Sub</span><br />
&nbsp;<br />
<span class="kw1">Private</span> <span class="kw1">Function</span> GetValidList(sForm <span class="kw1">As</span> <span class="kw1">String</span>) <span class="kw1">As</span> <span class="kw1">Variant</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> vArr <span class="kw1">As</span> <span class="kw1">Variant</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> vaReturn <span class="kw1">As</span> <span class="kw1">Variant</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> lngIndex <span class="kw1">As</span> <span class="kw1">Long</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">If</span> Left(sForm, 1) = <span class="st0">&#8220;=&#8221;</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8216; range/named range<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp;vArr = Evaluate(sForm)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">ReDim</span> vaReturn(0 <span class="kw1">To</span> <span class="kw1">UBound</span>(vArr) &#8211; 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">For</span> lngIndex = <span class="kw1">LBound</span>(vaReturn) <span class="kw1">To</span> <span class="kw1">UBound</span>(vaReturn)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vaReturn(lngIndex) = vArr(lngIndex + 1, 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Next</span><br />
&nbsp; &nbsp; <span class="kw1">Else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8216;for csv list<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp;vaReturn = Split(sForm, Application.International(xlListSeparator))<br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; GetValidList = vaReturn<br />
&nbsp; &nbsp; <br />
<span class="kw1">End</span> <span class="kw1">Function</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peder Schmedling</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/06/double-clicking-through-a-list/#comment-32198</link>
		<dc:creator>Peder Schmedling</dc:creator>
		<pubDate>Wed, 07 May 2008 08:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1836#comment-32198</guid>
		<description>&lt;p&gt;Hi Dick,&lt;br&gt;
great piece of code you have there. I can confirm the international issue you suspected; I&#039;m using Excel 2003 on a machine set up with Norwegian settings in the control panel. In Norwegian we are using &quot;;&quot; as list separator, not the regular comma. This yields some problems. If I define the list with &quot;;&quot; the Excel data validation works fine, but your code interprets the validation formula as just one entry. The other way around, defining the list with &quot;,&quot; yields the opposite results; Excel interprets the validation as a single item while your code treats it as several entries. This behavior is logical an actually expected if you think about it.&lt;/p&gt;
&lt;p&gt;In &lt;a href=&quot;http://www.tech-archive.net/Archive/Office/microsoft.public.powerpoint/2005-11/msg00068.html&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; thread a method is described for obtaining the list separator. Using this method in conjunction with your code seems to work well on my system (Win2k).&lt;/p&gt;
&lt;p&gt;You could also read out the sList value from &quot;HKEY_CURRENT_USERControl PanelInternational&quot; in the registry.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dick,<br />
great piece of code you have there. I can confirm the international issue you suspected; I&#8217;m using Excel 2003 on a machine set up with Norwegian settings in the control panel. In Norwegian we are using &#8220;;&#8221; as list separator, not the regular comma. This yields some problems. If I define the list with &#8220;;&#8221; the Excel data validation works fine, but your code interprets the validation formula as just one entry. The other way around, defining the list with &#8220;,&#8221; yields the opposite results; Excel interprets the validation as a single item while your code treats it as several entries. This behavior is logical an actually expected if you think about it.</p>
<p>In <a href="http://www.tech-archive.net/Archive/Office/microsoft.public.powerpoint/2005-11/msg00068.html" rel="nofollow">this</a> thread a method is described for obtaining the list separator. Using this method in conjunction with your code seems to work well on my system (Win2k).</p>
<p>You could also read out the sList value from &#8220;HKEY_CURRENT_USERControl PanelInternational&#8221; in the registry.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

