<?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: Find Text in a String (instr)</title>
	<atom:link href="http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/</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: Julian</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-2370</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Fri, 04 Nov 2011 12:02:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-2370</guid>
		<description>Hi Iam look for an solution:

I&#039;ve got a string value like this one:

strExample = abc-cde-12

I want to extract the last number, just if there are two of the &quot;-&quot; in the string.
I dont know how to handle that with &quot;InStr&quot;.

Maybe some has a hint for me?</description>
		<content:encoded><![CDATA[<p>Hi Iam look for an solution:</p>
<p>I&#8217;ve got a string value like this one:</p>
<p>strExample = abc-cde-12</p>
<p>I want to extract the last number, just if there are two of the &#8220;-&#8221; in the string.<br />
I dont know how to handle that with &#8220;InStr&#8221;.</p>
<p>Maybe some has a hint for me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-2136</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Tue, 12 Jul 2011 19:37:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-2136</guid>
		<description>Also works for me:

numOfMatches = (Len(UCase(TempString)) - Len(Replace(UCase(TempString), UCase(findText), &quot;&quot;))) / Len(UCase(findText))</description>
		<content:encoded><![CDATA[<p>Also works for me:</p>
<p>numOfMatches = (Len(UCase(TempString)) &#8211; Len(Replace(UCase(TempString), UCase(findText), &#8220;&#8221;))) / Len(UCase(findText))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jwk</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-2119</link>
		<dc:creator>jwk</dc:creator>
		<pubDate>Tue, 21 Jun 2011 19:06:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-2119</guid>
		<description>I am betting that reading the range into a variant array and using the instr() on the elements would happen pretty quickly.</description>
		<content:encoded><![CDATA[<p>I am betting that reading the range into a variant array and using the instr() on the elements would happen pretty quickly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter Rauschenberger</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-2114</link>
		<dc:creator>Walter Rauschenberger</dc:creator>
		<pubDate>Wed, 15 Jun 2011 14:47:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-2114</guid>
		<description>Instr returns the position at which the search string occours - not the number of times it is contained!</description>
		<content:encoded><![CDATA[<p>Instr returns the position at which the search string occours &#8211; not the number of times it is contained!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sherry</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-2113</link>
		<dc:creator>Sherry</dc:creator>
		<pubDate>Fri, 10 Jun 2011 13:03:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-2113</guid>
		<description>So this might not be the right place to publish this, but I&#039;ve never posted on a forum before, so I thought I&#039;d give it a shot. 

I&#039;m currently interning with a company who has hired me to help automate office processes centered around databases. So far, I&#039;ve done things with access, excel, and VBA that I didn&#039;t even think was possible, but for some reason, I&#039;ve now hit a brick wall. 

The task seems deceptively simple: We are importing fields from a project management database into access. Sometimes, fields such as project description or project title will have records that come in with spelling errors. Instead of meticulously reading these, or copying and pasting them into microsoft word one record at a time, what we would like to do is be able to cycle through the records belonging to a particular field and spellcheck them while they&#039;re in the table and then highlight the misspelled word in some way. 

Right now, I have a solution that will only check one word in the field, which is not sufficient. Any advice whatsoever would be appreciated. Thanks in advance.</description>
		<content:encoded><![CDATA[<p>So this might not be the right place to publish this, but I&#8217;ve never posted on a forum before, so I thought I&#8217;d give it a shot. </p>
<p>I&#8217;m currently interning with a company who has hired me to help automate office processes centered around databases. So far, I&#8217;ve done things with access, excel, and VBA that I didn&#8217;t even think was possible, but for some reason, I&#8217;ve now hit a brick wall. </p>
<p>The task seems deceptively simple: We are importing fields from a project management database into access. Sometimes, fields such as project description or project title will have records that come in with spelling errors. Instead of meticulously reading these, or copying and pasting them into microsoft word one record at a time, what we would like to do is be able to cycle through the records belonging to a particular field and spellcheck them while they&#8217;re in the table and then highlight the misspelled word in some way. </p>
<p>Right now, I have a solution that will only check one word in the field, which is not sufficient. Any advice whatsoever would be appreciated. Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerimiah</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-2090</link>
		<dc:creator>Jerimiah</dc:creator>
		<pubDate>Thu, 05 May 2011 23:25:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-2090</guid>
		<description>Of course this is an Access solution. There is no faster option is Excel then looping one line at a time.</description>
		<content:encoded><![CDATA[<p>Of course this is an Access solution. There is no faster option is Excel then looping one line at a time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerimiah</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-2089</link>
		<dc:creator>Jerimiah</dc:creator>
		<pubDate>Thu, 05 May 2011 23:23:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-2089</guid>
		<description>Omar,

Are you using a recordset object or a query? A recordset object has to go one line at a time and could take some time however if you create a query with an equation field Expr1: Instr(1, [FieldName], [String]) then set criteria &gt; 0 this query would only return records where the String is found. Should be much faster than the recordset object. If it is still slow try indexing the field you are doing the search on. It will increase the size of your database but is worth the saved time.</description>
		<content:encoded><![CDATA[<p>Omar,</p>
<p>Are you using a recordset object or a query? A recordset object has to go one line at a time and could take some time however if you create a query with an equation field Expr1: Instr(1, [FieldName], [String]) then set criteria &gt; 0 this query would only return records where the String is found. Should be much faster than the recordset object. If it is still slow try indexing the field you are doing the search on. It will increase the size of your database but is worth the saved time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-2038</link>
		<dc:creator>Omar</dc:creator>
		<pubDate>Mon, 28 Mar 2011 21:28:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-2038</guid>
		<description>Hi, thanks for all your posts. I am using INSTR() and it works fine, but for 50k rows, takes too much time. Can you recommend me any other function that can do the same but faster?

Thanks in advance for your help.
Omar.</description>
		<content:encoded><![CDATA[<p>Hi, thanks for all your posts. I am using INSTR() and it works fine, but for 50k rows, takes too much time. Can you recommend me any other function that can do the same but faster?</p>
<p>Thanks in advance for your help.<br />
Omar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-1982</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Wed, 16 Feb 2011 02:40:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-1982</guid>
		<description>Hi,

I want to search text which has variable length:
 Ex: SR or S/R or S?R
Is there any thing like wildcard which we can use with Instr function?

Please advice</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to search text which has variable length:<br />
 Ex: SR or S/R or S?R<br />
Is there any thing like wildcard which we can use with Instr function?</p>
<p>Please advice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asher Mehboob</title>
		<link>http://www.automateexcel.com/2004/08/14/excel_vba_find_text_in_a_string_instr/comment-page-1/#comment-1972</link>
		<dc:creator>Asher Mehboob</dc:creator>
		<pubDate>Mon, 07 Feb 2011 14:15:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-1972</guid>
		<description>Unfortunately this is the page with wrong information (check 2nd and 3rd comments from top) and this pages comes on top of google results.</description>
		<content:encoded><![CDATA[<p>Unfortunately this is the page with wrong information (check 2nd and 3rd comments from top) and this pages comes on top of google results.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

