<?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: Using Multiselect Listboxes</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/</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: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/#comment-64771</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Sat, 18 Jun 2011 13:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=501#comment-64771</guid>
		<description>&lt;p&gt;Greg:  The code in this post relates to ActiveX controls while your code relates to data validation.  They are different.  I don&#039;t think there is any way to select more than one entry in data validation.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Greg:  The code in this post relates to ActiveX controls while your code relates to data validation.  They are different.  I don&#8217;t think there is any way to select more than one entry in data validation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Whittaker - Australia</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/#comment-64752</link>
		<dc:creator>Greg Whittaker - Australia</dc:creator>
		<pubDate>Fri, 17 Jun 2011 03:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=501#comment-64752</guid>
		<description>&lt;p&gt;I am afraid that I do not understand Macros a lot, but I have copied the &quot;Same Cell&quot; macro from &lt;a href=&quot;http://www.contextures.com&quot; rel=&quot;nofollow&quot;&gt;http://www.contextures.com&lt;/a&gt; and modified the columns to suit my needs which is excellent (listed below). Where does the above go within this macro.&lt;br&gt;
I would probably need #1.&lt;br&gt;
Also does this remove the problem of when you go back to the cell to either add another item from the list or delete one where it adds to the cell the original contents plus the amended ones.&lt;br&gt;
Thanks&lt;br&gt;
Greg&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_Change(&lt;span class=&quot;kw1&quot;&gt;ByVal&lt;/span&gt; Target &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range)&lt;br&gt;
&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; rngDV &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; oldVal &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; newVal &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Target.Count &gt; 1 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;GoTo&lt;/span&gt; exitHandler&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;Resume&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; rngDV = Cells.SpecialCells(xlCellTypeAllValidation)&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; exitHandler&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; rngDV &lt;span class=&quot;kw1&quot;&gt;Is&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Nothing&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;GoTo&lt;/span&gt; exitHandler&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Intersect(Target, rngDV) &lt;span class=&quot;kw1&quot;&gt;Is&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Nothing&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;do nothing&lt;br&gt;
&lt;/span&gt; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Else&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; Application.EnableEvents = &lt;span class=&quot;kw1&quot;&gt;False&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; newVal = Target.Value&lt;br&gt;
&#160; &#160; &#160; Application.Undo&lt;br&gt;
&#160; &#160; &#160; oldVal = Target.Value&lt;br&gt;
&#160; &#160; &#160; Target.Value = newVal&lt;br&gt;
&#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; (Target.Column = 13) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 17) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 21) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 24) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 49) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 50) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 51) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 52) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 53) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 54) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 55) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 56) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 57) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 58) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 59) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 60) &lt;span class=&quot;kw1&quot;&gt;Or&lt;/span&gt; (Target.Column = 61) &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; oldVal = &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; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;do nothing&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Else&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; newVal = &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; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;do nothing&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;Else&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; Target.Value = oldVal _&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &amp; &lt;span class=&quot;st0&quot;&gt;&quot;, &quot;&lt;/span&gt; &amp; newVal&lt;br&gt;
&#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; &#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;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;br&gt;
exitHandler&lt;br&gt;
&#160; &#160; &#160; Application.EnableEvents = &lt;span class=&quot;kw1&quot;&gt;True&lt;/span&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>I am afraid that I do not understand Macros a lot, but I have copied the &#8220;Same Cell&#8221; macro from <a href="http://www.contextures.com" rel="nofollow">http://www.contextures.com</a> and modified the columns to suit my needs which is excellent (listed below). Where does the above go within this macro.<br />
I would probably need #1.<br />
Also does this remove the problem of when you go back to the cell to either add another item from the list or delete one where it adds to the cell the original contents plus the amended ones.<br />
Thanks<br />
Greg</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_Change(<span class="kw1">ByVal</span> Target <span class="kw1">As</span> Range)</p>
<p>&nbsp; &nbsp; <span class="kw1">Dim</span> rngDV <span class="kw1">As</span> Range<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> oldVal <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> newVal <span class="kw1">As</span> <span class="kw1">String</span></p>
<p>&nbsp; &nbsp; <span class="kw1">If</span> Target.Count &gt; 1 <span class="kw1">Then</span> <span class="kw1">GoTo</span> exitHandler<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">On</span> <span class="kw1">Error</span> <span class="kw1">Resume</span> <span class="kw1">Next</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Set</span> rngDV = Cells.SpecialCells(xlCellTypeAllValidation)<br />
&nbsp; &nbsp; <span class="kw1">On</span> <span class="kw1">Error</span> <span class="kw1">GoTo</span> exitHandler<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">If</span> rngDV <span class="kw1">Is</span> <span class="kw1">Nothing</span> <span class="kw1">Then</span> <span class="kw1">GoTo</span> exitHandler<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">If</span> Intersect(Target, rngDV) <span class="kw1">Is</span> <span class="kw1">Nothing</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">&#8216;do nothing<br />
</span> &nbsp; &nbsp;<span class="kw1">Else</span><br />
&nbsp; &nbsp; &nbsp; Application.EnableEvents = <span class="kw1">False</span><br />
&nbsp; &nbsp; &nbsp; newVal = Target.Value<br />
&nbsp; &nbsp; &nbsp; Application.Undo<br />
&nbsp; &nbsp; &nbsp; oldVal = Target.Value<br />
&nbsp; &nbsp; &nbsp; Target.Value = newVal<br />
&nbsp; &nbsp; &nbsp; <span class="kw1">If</span> (Target.Column = 13) <span class="kw1">Or</span> (Target.Column = 17) <span class="kw1">Or</span> (Target.Column = 21) <span class="kw1">Or</span> (Target.Column = 24) <span class="kw1">Or</span> (Target.Column = 49) <span class="kw1">Or</span> (Target.Column = 50) <span class="kw1">Or</span> (Target.Column = 51) <span class="kw1">Or</span> (Target.Column = 52) <span class="kw1">Or</span> (Target.Column = 53) <span class="kw1">Or</span> (Target.Column = 54) <span class="kw1">Or</span> (Target.Column = 55) <span class="kw1">Or</span> (Target.Column = 56) <span class="kw1">Or</span> (Target.Column = 57) <span class="kw1">Or</span> (Target.Column = 58) <span class="kw1">Or</span> (Target.Column = 59) <span class="kw1">Or</span> (Target.Column = 60) <span class="kw1">Or</span> (Target.Column = 61) <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> oldVal = <span class="st0">&#8220;&#8221;</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8216;do nothing<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">Else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> newVal = <span class="st0">&#8220;&#8221;</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8216;do nothing<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">Else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Target.Value = oldVal _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; <span class="st0">&#8220;, &#8220;</span> &amp; newVal<br />
&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; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; <br />
exitHandler<br />
&nbsp; &nbsp; &nbsp; Application.EnableEvents = <span class="kw1">True</span><br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/#comment-41726</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Mon, 19 Oct 2009 20:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=501#comment-41726</guid>
		<description>&lt;p&gt;Can you make a listbox = all files in a folder, so if you add or delete files they will be added or removed from the listbox?  I could make a static list box for the values (filenames), but I would rather have it read them without needing to update.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Can you make a listbox = all files in a folder, so if you add or delete files they will be added or removed from the listbox?  I could make a static list box for the values (filenames), but I would rather have it read them without needing to update.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mui Hua</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/#comment-14388</link>
		<dc:creator>Mui Hua</dc:creator>
		<pubDate>Wed, 29 Jun 2005 09:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=501#comment-14388</guid>
		<description>&lt;p&gt;I&#039;ve a ListBox with the setting of MultiSelectExtended.  I need to point the selected data to a series of cells in another spreadsheet for my further action.  So far, I am only able to link to 1 cell but it&#039;s not what I wanted. Can you help?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve a ListBox with the setting of MultiSelectExtended.  I need to point the selected data to a series of cells in another spreadsheet for my further action.  So far, I am only able to link to 1 cell but it&#8217;s not what I wanted. Can you help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/#comment-11007</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Fri, 15 Apr 2005 22:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=501#comment-11007</guid>
		<description>&lt;p&gt;supergoat:  Check out this post&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.dicks-blog.com/archives/2004/06/29/preserving-listbox-selections/&quot; rel=&quot;nofollow&quot;&gt;http://www.dicks-blog.com/archives/2004/06/29/preserving-listbox-selections/&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>supergoat:  Check out this post</p>
<p><a href="http://www.dicks-blog.com/archives/2004/06/29/preserving-listbox-selections/" rel="nofollow">http://www.dicks-blog.com/archives/2004/06/29/preserving-listbox-selections/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: supergoat</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/#comment-10886</link>
		<dc:creator>supergoat</dc:creator>
		<pubDate>Fri, 15 Apr 2005 12:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=501#comment-10886</guid>
		<description>&lt;p&gt;Eugene/Dick,&lt;/p&gt;
&lt;p&gt;Can you explain a litter further how i ensure that items selected in a multi-select listbox are saved and retrieved when the worksheet is reopened.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Eugene/Dick,</p>
<p>Can you explain a litter further how i ensure that items selected in a multi-select listbox are saved and retrieved when the worksheet is reopened.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene nae</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/#comment-1420</link>
		<dc:creator>Eugene nae</dc:creator>
		<pubDate>Tue, 29 Jun 2004 19:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=501#comment-1420</guid>
		<description>&lt;p&gt;FIGURED IT OUT!!!&lt;/p&gt;
&lt;p&gt;You use Shape.OLEFormat.Object to get to the original ActiveX object from the Excel control. From then on, it acts as a normal ActiveX control. (use ListBox.Selected(index) = False/True)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>FIGURED IT OUT!!!</p>
<p>You use Shape.OLEFormat.Object to get to the original ActiveX object from the Excel control. From then on, it acts as a normal ActiveX control. (use ListBox.Selected(index) = False/True)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene Nae</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/04/27/using-multiselect-listboxes/#comment-1419</link>
		<dc:creator>Eugene Nae</dc:creator>
		<pubDate>Tue, 29 Jun 2004 00:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=501#comment-1419</guid>
		<description>&lt;p&gt;I notice that when you use MultiSelect Extended or Multi, Excel wipes out your selections. I link the list to an Excel range, select some items, Save, open the workbook again and nothing is selected. Please help if you know a workaround.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I notice that when you use MultiSelect Extended or Multi, Excel wipes out your selections. I link the list to an Excel range, select some items, Save, open the workbook again and nothing is selected. Please help if you know a workaround.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

