<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>shohei blog &#187; VBA</title>
	<atom:link href="http://www.bak-net.com/blog/tag/vba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bak-net.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 17 Sep 2011 11:28:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>久々に</title>
		<link>http://www.bak-net.com/blog/2010/04/02/%e4%b9%85%e3%80%85%e3%81%ab/</link>
		<comments>http://www.bak-net.com/blog/2010/04/02/%e4%b9%85%e3%80%85%e3%81%ab/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 10:59:16 +0000</pubDate>
		<dc:creator>Shohei</dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://www.bak-net.com/blog/2010/04/02/%e4%b9%85%e3%80%85%e3%81%ab/</guid>
		<description><![CDATA[VBA書いたので残しておくｗ
Set ～思い出すのに3分かかったｗ
Sub main()
Dim SelectCell As Range
Set SelectCell = Range(&#8220;i2&#8243;)
SelectCell.Activate
While SelectCell.Value &#60;&#62; &#8220;&#8221;
SelectCell.Value = ReplaceHTML(SelectCell.Value)
Set SelectCell = SelectCell.Cells(2, 1)
SelectCell.Activate
Wend
End Sub
Function ReplaceHTML(str As String) As String
Dim pos As Integer
Dim str1 As String
Dim str2 As String
&#8216;最初のTRまで検出する
pos = InStr(str, &#8220;&#60;/tr&#8221;)
str1 = Left(str, pos)
str2 = Right(str, Len(str) &#8211; pos)
str1 = Replace(str1, &#8220;&#60;tr&#8221;, &#8220;&#60;tr id=&#8221;"st_head&#8221;" &#8220;, 1, -1, vbTextCompare)
str2 = Replace(str2, [...]]]></description>
			<content:encoded><![CDATA[<p>VBA書いたので残しておくｗ<br />
Set ～思い出すのに3分かかったｗ</p>
<blockquote><p>Sub main()<br />
Dim SelectCell As Range</p>
<p>Set SelectCell = Range(&#8220;i2&#8243;)<br />
SelectCell.Activate</p>
<p>While SelectCell.Value &lt;&gt; &#8220;&#8221;</p>
<p>SelectCell.Value = ReplaceHTML(SelectCell.Value)</p>
<p>Set SelectCell = SelectCell.Cells(2, 1)<br />
SelectCell.Activate</p>
<p>Wend</p>
<p>End Sub</p>
<p>Function ReplaceHTML(str As String) As String</p>
<p>Dim pos As Integer<br />
Dim str1 As String<br />
Dim str2 As String</p>
<p>&#8216;最初のTRまで検出する<br />
pos = InStr(str, &#8220;&lt;/tr&#8221;)</p>
<p>str1 = Left(str, pos)<br />
str2 = Right(str, Len(str) &#8211; pos)</p>
<p>str1 = Replace(str1, &#8220;&lt;tr&#8221;, &#8220;&lt;tr id=&#8221;"st_head&#8221;" &#8220;, 1, -1, vbTextCompare)<br />
str2 = Replace(str2, &#8220;&lt;tr&#8221;, &#8220;&lt;tr id=&#8221;"st_date&#8221;" &#8220;, 1, -1, vbTextCompare)</p>
<p>ReplaceHTML = str1 &amp; str2</p>
<p>End Function</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.bak-net.com/blog/2010/04/02/%e4%b9%85%e3%80%85%e3%81%ab/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

