<?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: Limit a Listbox</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Mon, 06 Feb 2012 18:39:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Cesar</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-40407</link>
		<dc:creator>Cesar</dc:creator>
		<pubDate>Thu, 30 Jul 2009 14:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-40407</guid>
		<description>&lt;p&gt;Another question:&lt;/p&gt;
&lt;p&gt;What if i have 2 columns:&lt;/p&gt;
&lt;p&gt;Column A is for Customer Codes&lt;br&gt;
Column B is for Customer Names&lt;/p&gt;
&lt;p&gt;Then, I want a Customer Search on Column B so that I may able to see its Customer Code (Column A) and the corresponding Customer Name (Column B).&lt;/p&gt;
&lt;p&gt;Thanks for accomodating me.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Another question:</p>
<p>What if i have 2 columns:</p>
<p>Column A is for Customer Codes<br />
Column B is for Customer Names</p>
<p>Then, I want a Customer Search on Column B so that I may able to see its Customer Code (Column A) and the corresponding Customer Name (Column B).</p>
<p>Thanks for accomodating me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cesar Flores</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-40400</link>
		<dc:creator>Cesar Flores</dc:creator>
		<pubDate>Thu, 30 Jul 2009 10:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-40400</guid>
		<description>&lt;p&gt;This is the one I modified, still not working. Pls be patient with me, I am new with this VBA.&lt;/p&gt;
&lt;p&gt;Private Sub Textbox1_Change()&lt;/p&gt;
&lt;p&gt;    Dim i As Long&lt;br&gt;
    Dim sCrit As String&lt;/p&gt;
&lt;p&gt;    sCrit = &quot;*&quot; &amp; UCase(Me.TextBox1.Text) &amp; &quot;*&quot;&lt;/p&gt;
&lt;p&gt;    With Me.ListBox1&lt;br&gt;
        vaCustNames = Sheet1.Range(&quot;A1:A10?).Value&lt;/p&gt;
&lt;p&gt;        .List = vaCustNames&lt;/p&gt;
&lt;p&gt;        For i = .ListCount - 1 To 0 Step -1&lt;br&gt;
            If Not UCase(.List(i)) Like sCrit Then&lt;br&gt;
                .RemoveItem i&lt;br&gt;
            End If&lt;br&gt;
        Next i&lt;br&gt;
    End With&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is the one I modified, still not working. Pls be patient with me, I am new with this VBA.</p>
<p>Private Sub Textbox1_Change()</p>
<p>    Dim i As Long<br />
    Dim sCrit As String</p>
<p>    sCrit = &#8220;*&#8221; &amp; UCase(Me.TextBox1.Text) &amp; &#8220;*&#8221;</p>
<p>    With Me.ListBox1<br />
        vaCustNames = Sheet1.Range(&#8220;A1:A10?).Value</p>
<p>        .List = vaCustNames</p>
<p>        For i = .ListCount &#8211; 1 To 0 Step -1<br />
            If Not UCase(.List(i)) Like sCrit Then<br />
                .RemoveItem i<br />
            End If<br />
        Next i<br />
    End With</p>
<p>End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-40378</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 29 Jul 2009 14:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-40378</guid>
		<description>&lt;p&gt;Cesar:&lt;/p&gt;
&lt;p&gt;At some point, like in your initialize event, you have to&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;vaCustNames = Sheet1.Range(&quot;A1:A10&quot;).Value&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Change &#039;Sheet1&#039; to match your situation.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Cesar:</p>
<p>At some point, like in your initialize event, you have to</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">vaCustNames = Sheet1.Range(&#8220;A1:A10&#8243;).Value</div>
</div>
<p>Change &#8216;Sheet1&#8242; to match your situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cesar Flores</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-40367</link>
		<dc:creator>Cesar Flores</dc:creator>
		<pubDate>Tue, 28 Jul 2009 11:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-40367</guid>
		<description>&lt;p&gt;Hi Dick,&lt;/p&gt;
&lt;p&gt;Can you teach me how to do this in Excel.&lt;/p&gt;
&lt;p&gt;Same example as in the above, assuming that the list range occupies the column A.&lt;/p&gt;
&lt;p&gt;Hope you can help me about this.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dick,</p>
<p>Can you teach me how to do this in Excel.</p>
<p>Same example as in the above, assuming that the list range occupies the column A.</p>
<p>Hope you can help me about this.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cesar Flores</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-40366</link>
		<dc:creator>Cesar Flores</dc:creator>
		<pubDate>Tue, 28 Jul 2009 11:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-40366</guid>
		<description>&lt;p&gt;Hi,&lt;br&gt;
 how to set up this.&lt;/p&gt;
&lt;p&gt; .List = vaCustNames&lt;/p&gt;
&lt;p&gt;I have a range from A1:A10 and name as &quot;vaCustNames&quot; but i doesn&#039;t work. &lt;/p&gt;
&lt;p&gt;thank you.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,<br />
 how to set up this.</p>
<p> .List = vaCustNames</p>
<p>I have a range from A1:A10 and name as &#8220;vaCustNames&#8221; but i doesn&#8217;t work. </p>
<p>thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-32038</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Fri, 25 Apr 2008 21:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-32038</guid>
		<description>&lt;p&gt;Hi,&lt;br&gt;
I a self taugh VBA ....&lt;/p&gt;
&lt;p&gt;I cannot seem to get the above working...here is what I have so far:&lt;br&gt;
Private Sub TextBox1_Change()&lt;br&gt;
Dim i As Long&lt;br&gt;
    Dim sCrit As String&lt;/p&gt;
&lt;p&gt;    &#039;Add asterisks around text for all matches&lt;br&gt;
    &#039;UCase is used to make filter case-insensitive&lt;br&gt;
    sCrit = &quot;*&quot; &amp; UCase(Me.TextBox1.Text) &#039;&amp; &quot;*&quot;&lt;br&gt;
    With Me.ListBox1&lt;br&gt;
        &#039;Start with a fresh list&lt;br&gt;
        .List = Application.Transpose(rcArray)&lt;br&gt;
        &#039;Loop through the list backward - always a good&lt;br&gt;
        &#039;idea when you&#039;re deleting stuff&lt;br&gt;
        MsgBox .ListCount&lt;br&gt;
        For i = .ListCount - 1 To 0 Step -1&lt;br&gt;
            &#039;Remove the line if it doesn&#039;t match&lt;br&gt;
            &#039;UCase used again here&lt;br&gt;
            If Not UCase(.List(i)) Like sCrit Then&lt;br&gt;
                .RemoveItem i&lt;br&gt;
            End If&lt;br&gt;
        Next i&lt;br&gt;
    End With&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;Also, how would I get the value selected by cliking on the list box?&lt;/p&gt;
&lt;p&gt;Thanks for any help,&lt;br&gt;
Johnny&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I a self taugh VBA &#8230;.</p>
<p>I cannot seem to get the above working&#8230;here is what I have so far:<br />
Private Sub TextBox1_Change()<br />
Dim i As Long<br />
    Dim sCrit As String</p>
<p>    &#8216;Add asterisks around text for all matches<br />
    &#8216;UCase is used to make filter case-insensitive<br />
    sCrit = &#8220;*&#8221; &amp; UCase(Me.TextBox1.Text) &#8216;&amp; &#8220;*&#8221;<br />
    With Me.ListBox1<br />
        &#8216;Start with a fresh list<br />
        .List = Application.Transpose(rcArray)<br />
        &#8216;Loop through the list backward &#8211; always a good<br />
        &#8216;idea when you&#8217;re deleting stuff<br />
        MsgBox .ListCount<br />
        For i = .ListCount &#8211; 1 To 0 Step -1<br />
            &#8216;Remove the line if it doesn&#8217;t match<br />
            &#8216;UCase used again here<br />
            If Not UCase(.List(i)) Like sCrit Then<br />
                .RemoveItem i<br />
            End If<br />
        Next i<br />
    End With</p>
<p>End Sub</p>
<p>Also, how would I get the value selected by cliking on the list box?</p>
<p>Thanks for any help,<br />
Johnny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jocelyn Paines Blog » Blog Archive » Filtering out non-matches in Excelsior spreadsheet: recursive coding with tables</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-28729</link>
		<dc:creator>Jocelyn Paines Blog » Blog Archive » Filtering out non-matches in Excelsior spreadsheet: recursive coding with tables</dc:creator>
		<pubDate>Fri, 16 Nov 2007 14:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-28729</guid>
		<description>&lt;p&gt;[...] they were functions in a &quot;normal&quot; programming language.¬ From discussions such as Limit a Listbox in¬ Dick Kusleika&#039;s Daily Dose of Excel blog, it seems doing this¬ directly in Excel can be [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] they were functions in a &#8220;normal&#8221; programming language.¬ From discussions such as Limit a Listbox in¬ Dick Kusleika&#8217;s Daily Dose of Excel blog, it seems doing this¬ directly in Excel can be [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-12501</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Wed, 25 May 2005 21:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-12501</guid>
		<description>&lt;p&gt;Dick,&lt;/p&gt;
&lt;p&gt;I am trying to use this code in an access 2003 application so I don&#039;t have a workbook. I&#039;m sorry for not being clear about that. I have an access form with a listbox with 9 colums (list0). I&#039;ve modified the code to point to Me.list0 and modified the other variable names but debugging fails on this line:&lt;/p&gt;
&lt;p&gt;.List = sbj_name&lt;/p&gt;
&lt;p&gt;Does this make sense?&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;
&lt;p&gt;Arnold.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick,</p>
<p>I am trying to use this code in an access 2003 application so I don&#8217;t have a workbook. I&#8217;m sorry for not being clear about that. I have an access form with a listbox with 9 colums (list0). I&#8217;ve modified the code to point to Me.list0 and modified the other variable names but debugging fails on this line:</p>
<p>.List = sbj_name</p>
<p>Does this make sense?</p>
<p>Thanks for your help!</p>
<p>Arnold.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-12500</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 25 May 2005 20:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-12500</guid>
		<description>&lt;p&gt;Arnold:  Send me your workbook if you can.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Arnold:  Send me your workbook if you can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/16/limit-a-listbox/#comment-12497</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Wed, 25 May 2005 18:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1024#comment-12497</guid>
		<description>&lt;p&gt;Hi Dick, Kris and Jon,&lt;/p&gt;
&lt;p&gt;Thanks for these posts. Very useful code. I&#039;ve been trying to apply Dick&#039;s code to limit the list in a 9 column list box with three different text fiels. I&#039;m getting the same error &quot;Method or Data member not found&quot; when I try to debug the code. The error refers to the &quot;.List =&quot; part. Could anyone help me with this?&lt;/p&gt;
&lt;p&gt;Sorry if this is a silly question.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Arnold.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dick, Kris and Jon,</p>
<p>Thanks for these posts. Very useful code. I&#8217;ve been trying to apply Dick&#8217;s code to limit the list in a 9 column list box with three different text fiels. I&#8217;m getting the same error &#8220;Method or Data member not found&#8221; when I try to debug the code. The error refers to the &#8220;.List =&#8221; part. Could anyone help me with this?</p>
<p>Sorry if this is a silly question.</p>
<p>Thanks!</p>
<p>Arnold.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

