<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBA: замена текста]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=1373&amp;type=atom" />
	<updated>2008-04-17T17:22:33Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=1373</id>
		<entry>
			<title type="html"><![CDATA[VBA: замена текста]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=10513#p10513" />
			<content type="html"><![CDATA[<p>Простейший пример замены текста в Excel. Макрос заменяет в выделенном диапазоне символы неразрывного пробела &quot;Chr(160)&quot; на пустую строку, т.е. вырезает их. Этот код можно поместить в любом дополнительном модуле в книге Excel.<br /></p><div class="codebox"><pre><code>Sub ReplaceSpaces160()
    On Error Resume Next
    Selection.Replace What:=Chr(160), Replacement:=&quot;&quot;, LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
        ReplaceFormat:=False
End Sub</code></pre></div>]]></content>
			<author>
				<name><![CDATA[The gray Cardinal]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=2</uri>
			</author>
			<updated>2008-04-17T17:22:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=10513#p10513</id>
		</entry>
</feed>
