<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Detect bold text in MS Excel</title>
	<link>http://ask.metafilter.com/105810/Detect-bold-text-in-MS-Excel/</link>
	<description>Comments on Ask MetaFilter post Detect bold text in MS Excel</description>
	<pubDate>Sun, 02 Nov 2008 15:01:55 -0800</pubDate>
	<lastBuildDate>Sun, 02 Nov 2008 15:01:55 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Detect bold text in MS Excel</title>
		<link>http://ask.metafilter.com/105810/Detect-bold-text-in-MS-Excel</link>	
		<description>I have a very large MS Excel spreadsheet in Mac Office 2008 (yuk). I want to find every cell that contains bold text and append an asterisk to it -- i.e. &quot;&lt;strong&gt;bold cell text&lt;/strong&gt;&quot; becomes &quot;bold cell text*&quot;. I can probably find a Windows machine if necessary. How can this be done automatically?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.105810</guid>
		<pubDate>Sun, 02 Nov 2008 14:36:39 -0800</pubDate>
		<dc:creator>beniamino</dc:creator>
		
			<category>msexcel</category>
		
			<category>excel</category>
		
			<category>spreadsheet</category>
		
	</item> <item>
		<title>By: pompomtom</title>
		<link>http://ask.metafilter.com/105810/Detect-bold-text-in-MS-Excel#1527632</link>	
		<description>The following macro will do it, though it&apos;ll take a while, as it considers every cell on the sheet.&lt;br&gt;
If you know the extent of your spreadsheet, you can change &quot;Cells&quot; to &quot;Range(&quot;A1:Z10000&quot;) or something to speed it up. &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;blockquote&gt;&lt;br&gt;
Sub MarkBold()&lt;br&gt;
&lt;br&gt;
For Each c In Cells&lt;br&gt;
    If c.Font.Bold = True Then c.Value = c.Value &amp;amp; &quot;*&quot;&lt;br&gt;
Next c&lt;br&gt;
&lt;br&gt;
End Sub&lt;br&gt;
&lt;/blockquote&gt;&lt;br&gt;
&lt;br&gt;
...alternatively - if you also want to de-boldify as per your example text, use:&lt;br&gt;
&lt;blockquote&gt;&lt;br&gt;
Sub MarkBold()&lt;br&gt;
&lt;br&gt;
For Each c In Cells&lt;br&gt;
    If c.Font.Bold = True Then&lt;br&gt;
c.Value = c.Value &amp;amp; &quot;*&quot;&lt;br&gt;
c.Font.Bold = False&lt;br&gt;
End If&lt;br&gt;
&lt;br&gt;
Next c&lt;br&gt;
&lt;br&gt;
End Sub&lt;br&gt;
&lt;/blockquote&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105810-1527632</guid>
		<pubDate>Sun, 02 Nov 2008 15:01:55 -0800</pubDate>
		<dc:creator>pompomtom</dc:creator>
	</item><item>
		<title>By: beniamino</title>
		<link>http://ask.metafilter.com/105810/Detect-bold-text-in-MS-Excel#1527647</link>	
		<description>Perfect! Thanks pompomtom, you just saved me hours of typing.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105810-1527647</guid>
		<pubDate>Sun, 02 Nov 2008 15:14:33 -0800</pubDate>
		<dc:creator>beniamino</dc:creator>
	</item><item>
		<title>By: zixyer</title>
		<link>http://ask.metafilter.com/105810/Detect-bold-text-in-MS-Excel#1527678</link>	
		<description>You should change &quot;Cells&quot; to &quot;UsedRange&quot; so it only looks at cells that are actually used.&lt;br&gt;
&lt;br&gt;
Excel maintains a hidden &quot;used range&quot;. You can tell its extent if you press CTRL+END, which takes you to the lower-right corner of the used range.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105810-1527678</guid>
		<pubDate>Sun, 02 Nov 2008 15:34:32 -0800</pubDate>
		<dc:creator>zixyer</dc:creator>
	</item><item>
		<title>By: flabdablet</title>
		<link>http://ask.metafilter.com/105810/Detect-bold-text-in-MS-Excel#1527870</link>	
		<description>And one tiny, tiny nit, which I&apos;m only going to pick because I see it all over the place and I&apos;ve become allergic to it:&lt;br&gt;
&lt;br&gt;
Testing a Boolean value for equality with True is redundant.  Instead of&lt;br&gt;
&lt;code&gt;&lt;br&gt;
If c.Font.Bold = True Then&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
you can simply use&lt;br&gt;
&lt;code&gt;&lt;br&gt;
If c.Font.Bold Then&lt;br&gt;
&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105810-1527870</guid>
		<pubDate>Sun, 02 Nov 2008 19:00:03 -0800</pubDate>
		<dc:creator>flabdablet</dc:creator>
	</item>
	</channel>
</rss>
