<?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: VBA and Vlookup: Find occurence of string</title>
	<atom:link href="http://www.automateexcel.com/2008/09/30/vba-and-vlookup-find-occurence-of-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automateexcel.com/2008/09/30/vba-and-vlookup-find-occurence-of-string/</link>
	<description>Everything Excel. Only Excel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 07:25:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: megamancito</title>
		<link>http://www.automateexcel.com/2008/09/30/vba-and-vlookup-find-occurence-of-string/comment-page-1/#comment-2120</link>
		<dc:creator>megamancito</dc:creator>
		<pubDate>Wed, 22 Jun 2011 15:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.automateexcel.com/?p=928#comment-2120</guid>
		<description>Yes, here&#039;s the code you&#039;re looking for:

      &#039;while the cell has a value:

    While Len(Range(&quot;A&quot; &amp; CStr(LSearchRow)).Value) &gt; 0
        
        &#039;If value in column A = &quot;DC, Y or X&quot;, copy entire row to Errors
        If Range(&quot;A&quot; &amp; CStr(LSearchRow)).Value = &quot;DC&quot; Or _
           Range(&quot;A&quot; &amp; CStr(LSearchRow)).Value = &quot;Y&quot; Or _
           Range(&quot;A&quot; &amp; CStr(LSearchRow)).Value = &quot;X&quot; Then
            
            
            
            &#039;Select row in mySheet1 to copy
            Rows(CStr(LSearchRow) &amp; &quot;:&quot; &amp; CStr(LSearchRow)).Select
            Selection.Copy
            
            &#039;Paste row into Errors sheet in next row
            Sheets(&quot;Errors&quot;).Select
            Rows(CStr(LCopyToRow) &amp; &quot;:&quot; &amp; CStr(LCopyToRow)).Select
            ActiveSheet.Paste
            
            &#039;Move counter to next row
            LCopyToRow = LCopyToRow + 1
            
            &#039;Go back to MIDS sheet to continue searching
            Sheets(&quot;mySheet1&quot;).Select
            
        End If
        
        LSearchRow = LSearchRow + 1
        
    Wend</description>
		<content:encoded><![CDATA[<p>Yes, here&#8217;s the code you&#8217;re looking for:</p>
<p>      &#8216;while the cell has a value:</p>
<p>    While Len(Range(&#8220;A&#8221; &amp; CStr(LSearchRow)).Value) &gt; 0</p>
<p>        &#8216;If value in column A = &#8220;DC, Y or X&#8221;, copy entire row to Errors<br />
        If Range(&#8220;A&#8221; &amp; CStr(LSearchRow)).Value = &#8220;DC&#8221; Or _<br />
           Range(&#8220;A&#8221; &amp; CStr(LSearchRow)).Value = &#8220;Y&#8221; Or _<br />
           Range(&#8220;A&#8221; &amp; CStr(LSearchRow)).Value = &#8220;X&#8221; Then</p>
<p>            &#8216;Select row in mySheet1 to copy<br />
            Rows(CStr(LSearchRow) &amp; &#8220;:&#8221; &amp; CStr(LSearchRow)).Select<br />
            Selection.Copy</p>
<p>            &#8216;Paste row into Errors sheet in next row<br />
            Sheets(&#8220;Errors&#8221;).Select<br />
            Rows(CStr(LCopyToRow) &amp; &#8220;:&#8221; &amp; CStr(LCopyToRow)).Select<br />
            ActiveSheet.Paste</p>
<p>            &#8216;Move counter to next row<br />
            LCopyToRow = LCopyToRow + 1</p>
<p>            &#8216;Go back to MIDS sheet to continue searching<br />
            Sheets(&#8220;mySheet1&#8243;).Select</p>
<p>        End If</p>
<p>        LSearchRow = LSearchRow + 1</p>
<p>    Wend</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob</title>
		<link>http://www.automateexcel.com/2008/09/30/vba-and-vlookup-find-occurence-of-string/comment-page-1/#comment-1313</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Fri, 28 Aug 2009 12:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.automateexcel.com/?p=928#comment-1313</guid>
		<description>This is a great tut...

but, is there a way i can look all values for &quot;DOG&quot;

it should return 
30
125
9250

Is that possible??</description>
		<content:encoded><![CDATA[<p>This is a great tut&#8230;</p>
<p>but, is there a way i can look all values for &#8220;DOG&#8221;</p>
<p>it should return<br />
30<br />
125<br />
9250</p>
<p>Is that possible??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

