<?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: HTML in Cells II</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/</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: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-65654</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Thu, 18 Aug 2011 18:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-65654</guid>
		<description>&lt;p&gt;Gunnar: It worked for me - put italic on one line and bold on the next.  Is there something missing from your comment that got interpreted as HTML?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Gunnar: It worked for me &#8211; put italic on one line and bold on the next.  Is there something missing from your comment that got interpreted as HTML?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gunnar</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-65628</link>
		<dc:creator>Gunnar</dc:creator>
		<pubDate>Wed, 17 Aug 2011 16:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-65628</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;(forget my last post. It could not be understood, because tags I wrote were replaced :) )&lt;br&gt;
nice approach.&lt;/p&gt;
&lt;p&gt;It just seems the&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;&lt;html&gt;&lt;i&gt;italic&lt;/i&gt;&lt;br/&gt;&lt;b&gt;bold&lt;/b&gt;&lt;/html&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;leads to a display that looks to me like&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;&lt;html&gt;&gt;i&gt;&lt;b&gt;italic&lt;br/&gt;bold&lt;/b&gt;&lt;/i&gt;&lt;/html&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;What do I do wrong?&lt;/p&gt;
&lt;p&gt;(have added a line, that replaces just as ,&lt;br&gt;
but that should not have caused the misbehaviour)&lt;/p&gt;
&lt;p&gt;Gunnar&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>(forget my last post. It could not be understood, because tags I wrote were replaced <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )<br />
nice approach.</p>
<p>It just seems the</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">&lt;html&gt;&lt;i&gt;italic&lt;/i&gt;&lt;br/&gt;&lt;b&gt;bold&lt;/b&gt;&lt;/html&gt;</div>
</div>
<p>leads to a display that looks to me like</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">&lt;html&gt;&gt;i&gt;&lt;b&gt;italic&lt;br/&gt;bold&lt;/b&gt;&lt;/i&gt;&lt;/html&gt;</div>
</div>
<p>What do I do wrong?</p>
<p>(have added a line, that replaces just as ,<br />
but that should not have caused the misbehaviour)</p>
<p>Gunnar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cecil Ohrt</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-48380</link>
		<dc:creator>Cecil Ohrt</dc:creator>
		<pubDate>Wed, 28 Jul 2010 13:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-48380</guid>
		<description>&lt;p&gt;Great post man Thanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great post man Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-42800</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Sun, 13 Dec 2009 14:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-42800</guid>
		<description>&lt;p&gt;hi all i need some help...&lt;/p&gt;
&lt;p&gt;if i product a table on excel, e.g. a table of months and days for excel, how do i turn that information into html and make the whole html code appear in one cell.. thanx.. i really need to know how to do this thanx.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hi all i need some help&#8230;</p>
<p>if i product a table on excel, e.g. a table of months and days for excel, how do i turn that information into html and make the whole html code appear in one cell.. thanx.. i really need to know how to do this thanx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ciprian</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-41231</link>
		<dc:creator>Ciprian</dc:creator>
		<pubDate>Thu, 24 Sep 2009 22:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-41231</guid>
		<description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have a cell comment. the comment is formated with some bolds and paracgraph/breaklin(exel formatting).&lt;/p&gt;
&lt;p&gt;can you please help me to do two thinks:&lt;/p&gt;
&lt;p&gt;1. copy the formated text to a adiacent cell(i found only to  copy text - after copy the text looses the &quot;bold formatting&quot;)&lt;br&gt;
2. transform excel  bold and breakline into html tags.&lt;/p&gt;
&lt;p&gt;thanx a lot.&lt;/p&gt;
&lt;p&gt;Sub ShowCommentsNextCell()&lt;br&gt;
&#039;based on code posted by Dave Peterson 2003-05-16&lt;br&gt;
  Application.ScreenUpdating = False&lt;/p&gt;
&lt;p&gt;  Dim commrange As Range&lt;br&gt;
  Dim mycell As Range&lt;br&gt;
  Dim curwks As Worksheet&lt;/p&gt;
&lt;p&gt;  Set curwks = ActiveSheet&lt;/p&gt;
&lt;p&gt;  On Error Resume Next&lt;br&gt;
  Set commrange = curwks.Cells _&lt;br&gt;
      .SpecialCells(xlCellTypeComments)&lt;br&gt;
  On Error GoTo 0&lt;/p&gt;
&lt;p&gt;  If commrange Is Nothing Then&lt;br&gt;
     MsgBox &quot;no comments found&quot;&lt;br&gt;
     Exit Sub&lt;br&gt;
  End If&lt;/p&gt;
&lt;p&gt;  For Each mycell In commrange&lt;br&gt;
     If mycell.Offset(0, 1).Value = &quot;&quot; Then&lt;br&gt;
      mycell.Offset(0, 1).Value = mycell.Comment.Text&lt;br&gt;
     End If&lt;br&gt;
  Next mycell&lt;/p&gt;
&lt;p&gt;  Application.ScreenUpdating = True&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;this code copy the text but i loose formating and i need to transform bold and &quot;line break&quot; to html tags.&lt;/p&gt;
&lt;p&gt;sry for my english&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>I have a cell comment. the comment is formated with some bolds and paracgraph/breaklin(exel formatting).</p>
<p>can you please help me to do two thinks:</p>
<p>1. copy the formated text to a adiacent cell(i found only to  copy text &#8211; after copy the text looses the &#8220;bold formatting&#8221;)<br />
2. transform excel  bold and breakline into html tags.</p>
<p>thanx a lot.</p>
<p>Sub ShowCommentsNextCell()<br />
&#8216;based on code posted by Dave Peterson 2003-05-16<br />
  Application.ScreenUpdating = False</p>
<p>  Dim commrange As Range<br />
  Dim mycell As Range<br />
  Dim curwks As Worksheet</p>
<p>  Set curwks = ActiveSheet</p>
<p>  On Error Resume Next<br />
  Set commrange = curwks.Cells _<br />
      .SpecialCells(xlCellTypeComments)<br />
  On Error GoTo 0</p>
<p>  If commrange Is Nothing Then<br />
     MsgBox &#8220;no comments found&#8221;<br />
     Exit Sub<br />
  End If</p>
<p>  For Each mycell In commrange<br />
     If mycell.Offset(0, 1).Value = &#8220;&#8221; Then<br />
      mycell.Offset(0, 1).Value = mycell.Comment.Text<br />
     End If<br />
  Next mycell</p>
<p>  Application.ScreenUpdating = True</p>
<p>End Sub</p>
<p>this code copy the text but i loose formating and i need to transform bold and &#8220;line break&#8221; to html tags.</p>
<p>sry for my english</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-36620</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 23 Dec 2008 22:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-36620</guid>
		<description>&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; Worksheet_Change(&lt;span class=&quot;kw1&quot;&gt;ByVal&lt;/span&gt; Target &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range)&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; objData &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; DataObject&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; sHTML &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; sSelAdd &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Const&lt;/span&gt; sTEMP &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&quot;&#124;&#124;&#124;&#124;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; Application.EnableEvents = &lt;span class=&quot;kw1&quot;&gt;False&lt;/span&gt;&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Target.Cells.Count = 1 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; LCase(Left(Target.Text, 6)) = &lt;span class=&quot;st0&quot;&gt;&quot;&lt;html&gt;&quot;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; objData = &lt;span class=&quot;kw1&quot;&gt;New&lt;/span&gt; DataObject&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; sHTML = Target.Text&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; sHTML = Replace(sHTML, &lt;span class=&quot;st0&quot;&gt;&quot;&lt;br /&gt;&quot;&lt;/span&gt;, sTEMP)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; objData.SetText sHTML&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; objData.PutInClipboard&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; sSelAdd = Selection.Address&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; Target.&lt;span class=&quot;kw1&quot;&gt;Select&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; Me.PasteSpecial &lt;span class=&quot;st0&quot;&gt;&quot;Unicode Text&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; Me.Range(sSelAdd).&lt;span class=&quot;kw1&quot;&gt;Select&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; Target.Value = Replace(Target.Value, sTEMP, Chr$(10))&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; Application.EnableEvents = &lt;span class=&quot;kw1&quot;&gt;True&lt;/span&gt;&lt;br&gt;
&#160; &#160;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This seems to work for multi-line stuff.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Private</span> <span class="kw1">Sub</span> Worksheet_Change(<span class="kw1">ByVal</span> Target <span class="kw1">As</span> Range)<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> objData <span class="kw1">As</span> DataObject<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> sHTML <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> sSelAdd <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">Const</span> sTEMP <span class="kw1">As</span> <span class="kw1">String</span> = <span class="st0">&#8220;||||&#8221;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Application.EnableEvents = <span class="kw1">False</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">If</span> Target.Cells.Count = 1 <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> LCase(Left(Target.Text, 6)) = <span class="st0">&#8220;&lt;html&gt;&#8221;</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Set</span> objData = <span class="kw1">New</span> DataObject<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sHTML = Target.Text<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sHTML = Replace(sHTML, <span class="st0">&#8220;&lt;br /&gt;&#8221;</span>, sTEMP)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objData.SetText sHTML<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objData.PutInClipboard<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sSelAdd = Selection.Address<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Target.<span class="kw1">Select</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.PasteSpecial <span class="st0">&#8220;Unicode Text&#8221;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.Range(sSelAdd).<span class="kw1">Select</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Target.Value = Replace(Target.Value, sTEMP, Chr$(10))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; Application.EnableEvents = <span class="kw1">True</span><br />
&nbsp; &nbsp;<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
<p>This seems to work for multi-line stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wannes</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-36608</link>
		<dc:creator>Wannes</dc:creator>
		<pubDate>Tue, 23 Dec 2008 17:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-36608</guid>
		<description>&lt;p&gt;Hi Dick,&lt;/p&gt;
&lt;p&gt;This looks really helpful for me. Only problem I have with this is that the  should create a new line within the cell. I don&#039;t really understand your code, so don&#039;t know how to change it.&lt;/p&gt;
&lt;p&gt;Have you been able to do so by now?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Wannes&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dick,</p>
<p>This looks really helpful for me. Only problem I have with this is that the  should create a new line within the cell. I don&#8217;t really understand your code, so don&#8217;t know how to change it.</p>
<p>Have you been able to do so by now?</p>
<p>Kind Regards,</p>
<p>Wannes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GR</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-36472</link>
		<dc:creator>GR</dc:creator>
		<pubDate>Mon, 15 Dec 2008 23:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-36472</guid>
		<description>&lt;p&gt;I have an html code like this:&lt;br&gt;
hello worldthis is a div tag&lt;/p&gt;
&lt;p&gt;Is it possible to paste this code on a single cell in excel? when I try to paste the code I got something like this:&lt;br&gt;
a   hello world&lt;br&gt;
b   this is a div tag&lt;/p&gt;
&lt;p&gt;I need to display this code in a single cell.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have an html code like this:<br />
hello worldthis is a div tag</p>
<p>Is it possible to paste this code on a single cell in excel? when I try to paste the code I got something like this:<br />
a   hello world<br />
b   this is a div tag</p>
<p>I need to display this code in a single cell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-34063</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 05 Aug 2008 10:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-34063</guid>
		<description>&lt;p&gt;I wrote:&lt;/p&gt;
&lt;p&gt;&gt; Replace the &#039;s with Chr(30), special-paste this as&lt;br&gt;
&gt; &quot;Unicode&quot; into a cell.&lt;/p&gt;
&lt;p&gt;Should read as:&lt;br&gt;
 Replace the newlines as Chr(30), then special-paste this&lt;br&gt;
 as &quot;Unicode&quot; into a cell.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I wrote:</p>
<p>&gt; Replace the &#8216;s with Chr(30), special-paste this as<br />
&gt; &#8220;Unicode&#8221; into a cell.</p>
<p>Should read as:<br />
 Replace the newlines as Chr(30), then special-paste this<br />
 as &#8220;Unicode&#8221; into a cell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/02/23/html-in-cells-ii/#comment-34062</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 05 Aug 2008 10:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1034#comment-34062</guid>
		<description>&lt;p&gt;Heya:&lt;/p&gt;
&lt;p&gt;You wrote:&lt;/p&gt;
&lt;p&gt;&gt; I haven&#039;t quite got the line break part worked out here.&lt;/p&gt;
&lt;p&gt;Never have I! We&#039;ll let&#039;s just say I&#039;m getting a bit anti-microsoft.&lt;/p&gt;
&lt;p&gt;What I tried is as follows:&lt;/p&gt;
&lt;p&gt;  Replace the &#039;s with Chr(30), special-paste this as &quot;Unicode&quot;&lt;br&gt;
  into a cell.&lt;/p&gt;
&lt;p&gt;Then run the following macro (executes on ActiveCell):&lt;br&gt;
 Sub ReplaceChr30asNewLines()&lt;br&gt;
    For n = 1 To Len(ActiveCell.Text)&lt;br&gt;
        If (Mid(ActiveCell.Text, n, 1) = Chr(30)) Then&lt;br&gt;
            &#039; This simply refuses to work when &gt; 255&lt;br&gt;
            ActiveCell.Characters(n, 1).Text = Chr(10)&lt;br&gt;
        End If&lt;br&gt;
    Next&lt;br&gt;
 End Sub&lt;/p&gt;
&lt;p&gt;The above works if the cell has less than 255 char&#039;s.&lt;/p&gt;
&lt;p&gt;It&#039;s the old &quot;Microsoft sacked the guy who wrote the code and&lt;br&gt;
nobody here can fix it in 5 years&quot; problem!&lt;/p&gt;
&lt;p&gt;Brr...Microsoft!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Heya:</p>
<p>You wrote:</p>
<p>&gt; I haven&#8217;t quite got the line break part worked out here.</p>
<p>Never have I! We&#8217;ll let&#8217;s just say I&#8217;m getting a bit anti-microsoft.</p>
<p>What I tried is as follows:</p>
<p>  Replace the &#8216;s with Chr(30), special-paste this as &#8220;Unicode&#8221;<br />
  into a cell.</p>
<p>Then run the following macro (executes on ActiveCell):<br />
 Sub ReplaceChr30asNewLines()<br />
    For n = 1 To Len(ActiveCell.Text)<br />
        If (Mid(ActiveCell.Text, n, 1) = Chr(30)) Then<br />
            &#8216; This simply refuses to work when &gt; 255<br />
            ActiveCell.Characters(n, 1).Text = Chr(10)<br />
        End If<br />
    Next<br />
 End Sub</p>
<p>The above works if the cell has less than 255 char&#8217;s.</p>
<p>It&#8217;s the old &#8220;Microsoft sacked the guy who wrote the code and<br />
nobody here can fix it in 5 years&#8221; problem!</p>
<p>Brr&#8230;Microsoft!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

