<?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: Pivot Table Conditional Formatting with VBA</title>
	<atom:link href="http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Thu, 11 Mar 2010 22:03:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-27078</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 17 Feb 2010 01:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-27078</guid>
		<description>Steve -

You don&#039;t provide the formulas you used in the conditional formatting conditions. I&#039;ve also heard of problems with conditional formatting in 2007. I don&#039;t have enough 2007 CF under my belt to know.</description>
		<content:encoded><![CDATA[<p>Steve -</p>
<p>You don&#8217;t provide the formulas you used in the conditional formatting conditions. I&#8217;ve also heard of problems with conditional formatting in 2007. I don&#8217;t have enough 2007 CF under my belt to know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wypiszynski</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-27065</link>
		<dc:creator>Steve Wypiszynski</dc:creator>
		<pubDate>Tue, 16 Feb 2010 20:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-27065</guid>
		<description>Jon -

Trying to determine if I&#039;ve uncovered a bug, a bad install of Excell 2007, or operator error.

I&#039;m using the conditional formatting style for a series of investment returns.  However, it seems that the internal calculation for one, two, or three standard is incorrect.  In fact, regardless of the number of standard deviations that I select, the same number of cells get formatted.  Even stranger, it only seems to occur when looking at observations below the mean.

In my case, the mean is 2.55% with a standard deviation of .73%  But every cell that is .77% below the mean gets highlighted regardless of the number of standard deviations is selected.

I could write some VBA code to accomplish this, but would rather have the system work as advertised.</description>
		<content:encoded><![CDATA[<p>Jon -</p>
<p>Trying to determine if I&#8217;ve uncovered a bug, a bad install of Excell 2007, or operator error.</p>
<p>I&#8217;m using the conditional formatting style for a series of investment returns.  However, it seems that the internal calculation for one, two, or three standard is incorrect.  In fact, regardless of the number of standard deviations that I select, the same number of cells get formatted.  Even stranger, it only seems to occur when looking at observations below the mean.</p>
<p>In my case, the mean is 2.55% with a standard deviation of .73%  But every cell that is .77% below the mean gets highlighted regardless of the number of standard deviations is selected.</p>
<p>I could write some VBA code to accomplish this, but would rather have the system work as advertised.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LEM</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-26765</link>
		<dc:creator>LEM</dc:creator>
		<pubDate>Tue, 09 Feb 2010 18:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-26765</guid>
		<description>Okay, I ended up getting it to work Jon!  Just to follow-up on the blog, please find the code below.  Thanks again for all the help!!


Sub FormatPT1()
Dim c As Range
 
With ActiveSheet.PivotTables(&quot;PivotTable1&quot;)
 
&#039;&#039; reset default formatting
With .TableRange1
    .Font.Bold = False
    .Interior.ColorIndex = 0
End With
 
With ActiveSheet.PivotTables(&quot;PivotTable1&quot;)
With Intersect(.PivotFields(&quot;BRAND DESCRIPTION&quot;).PivotItems(&quot;Name1&quot;).DataRange.EntireRow, _
    .TableRange1)
        .Font.Bold = True
        .Interior.ColorIndex = 6
     
     End With
    End With
End With
End Sub

Sub FormatPT2()
Dim c As Range
 
With ActiveSheet.PivotTables(&quot;PivotTable1&quot;)
With Intersect(.PivotFields(&quot;BRAND DESCRIPTION&quot;).PivotItems(&quot;Name2&quot;).DataRange.EntireRow, _
    .TableRange1)
        .Font.Bold = True
        .Interior.ColorIndex = 6
     
     End With
    End With
End Sub
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
  Select Case Target.Name
    Case &quot;PivotTable1&quot;
      FormatPT1
      FormatPT2
    End Select
End Sub</description>
		<content:encoded><![CDATA[<p>Okay, I ended up getting it to work Jon!  Just to follow-up on the blog, please find the code below.  Thanks again for all the help!!</p>
<p>Sub FormatPT1()<br />
Dim c As Range</p>
<p>With ActiveSheet.PivotTables(&#8220;PivotTable1&#8243;)</p>
<p>&#8221; reset default formatting<br />
With .TableRange1<br />
    .Font.Bold = False<br />
    .Interior.ColorIndex = 0<br />
End With</p>
<p>With ActiveSheet.PivotTables(&#8220;PivotTable1&#8243;)<br />
With Intersect(.PivotFields(&#8220;BRAND DESCRIPTION&#8221;).PivotItems(&#8220;Name1&#8243;).DataRange.EntireRow, _<br />
    .TableRange1)<br />
        .Font.Bold = True<br />
        .Interior.ColorIndex = 6</p>
<p>     End With<br />
    End With<br />
End With<br />
End Sub</p>
<p>Sub FormatPT2()<br />
Dim c As Range</p>
<p>With ActiveSheet.PivotTables(&#8220;PivotTable1&#8243;)<br />
With Intersect(.PivotFields(&#8220;BRAND DESCRIPTION&#8221;).PivotItems(&#8220;Name2&#8243;).DataRange.EntireRow, _<br />
    .TableRange1)<br />
        .Font.Bold = True<br />
        .Interior.ColorIndex = 6</p>
<p>     End With<br />
    End With<br />
End Sub<br />
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)<br />
  Select Case Target.Name<br />
    Case &#8220;PivotTable1&#8243;<br />
      FormatPT1<br />
      FormatPT2<br />
    End Select<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LEM</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-26763</link>
		<dc:creator>LEM</dc:creator>
		<pubDate>Tue, 09 Feb 2010 15:35:24 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-26763</guid>
		<description>Oh, and as a follow-up, thank you for that catch!!  I changed those inconsistencies...</description>
		<content:encoded><![CDATA[<p>Oh, and as a follow-up, thank you for that catch!!  I changed those inconsistencies&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LEM</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-26761</link>
		<dc:creator>LEM</dc:creator>
		<pubDate>Tue, 09 Feb 2010 15:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-26761</guid>
		<description>Hey Jon,

I made a mistake in my post earlier.  I am trying to get the same format for either Name 1 or Name 2 (Sorry!  I entered Name 2 twice in my previous post).  Is there a way I can include this without running into that same error?

Thanks again!!</description>
		<content:encoded><![CDATA[<p>Hey Jon,</p>
<p>I made a mistake in my post earlier.  I am trying to get the same format for either Name 1 or Name 2 (Sorry!  I entered Name 2 twice in my previous post).  Is there a way I can include this without running into that same error?</p>
<p>Thanks again!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-26760</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 09 Feb 2010 15:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-26760</guid>
		<description>There are a few inconsistencies. You reference both of these:

ActiveSheet.PivotTables(&quot;PivotTable1&quot;)
ActiveSheet.PivotTables(1)

The &quot;With ActiveSheet.PivotTables(1)&quot; block appears twice, the second one inside the first.

I think this will do it:

&lt;pre class=&quot;vbasmall&quot;&gt;&lt;code&gt;Sub FormatPT1()
 
  With ActiveSheet.PivotTables(&quot;PivotTable1&quot;)
    &#039;&#039; reset default formatting
    With .TableRange1
      .Font.Bold = False
      .Interior.ColorIndex = 0
    End With

    With Intersect(.PivotFields(&quot;BRAND DESCRIPTION&quot;).PivotItems(&quot;NAME 2&quot;).DataRange.EntireRow, _
        .TableRange1)
      .Font.Bold = True
      .Interior.ColorIndex = 6
    End With
  End With
End Sub&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>There are a few inconsistencies. You reference both of these:</p>
<p>ActiveSheet.PivotTables(&#8220;PivotTable1&#8243;)<br />
ActiveSheet.PivotTables(1)</p>
<p>The &#8220;With ActiveSheet.PivotTables(1)&#8221; block appears twice, the second one inside the first.</p>
<p>I think this will do it:</p>
<pre class="vbasmall"><code>Sub FormatPT1()

  With ActiveSheet.PivotTables("PivotTable1")
    '' reset default formatting
    With .TableRange1
      .Font.Bold = False
      .Interior.ColorIndex = 0
    End With

    With Intersect(.PivotFields("BRAND DESCRIPTION").PivotItems("NAME 2").DataRange.EntireRow, _
        .TableRange1)
      .Font.Bold = True
      .Interior.ColorIndex = 6
    End With
  End With
End Sub</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: LEM</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-26758</link>
		<dc:creator>LEM</dc:creator>
		<pubDate>Tue, 09 Feb 2010 14:04:36 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-26758</guid>
		<description>Hey Jon, 

Running into another issue and would appreciate any help you can provide! My code was working fine for highlighting an entire row when I had it based on one condition only. When I try to just add in another section for a second condition (wanting the same result, the entire row highlighted) I receive an error (specifically with my End Sub). 


Sub FormatPT1()
Dim c As Range
 
With ActiveSheet.PivotTables(&quot;PivotTable1&quot;)
 
&#039;&#039; reset default formatting
With .TableRange1
    .Font.Bold = False
    .Interior.ColorIndex = 0
End With

With ActiveSheet.PivotTables(1)
With Intersect(.PivotFields(&quot;BRAND DESCRIPTION&quot;).PivotItems(&quot;NAME 2&quot;).DataRange.EntireRow, _
    .TableRange1)
        .Font.Bold = True
        .Interior.ColorIndex = 6
        
With ActiveSheet.PivotTables(1)
With Intersect(.PivotFields(&quot;BRAND DESCRIPTION&quot;).PivotItems(&quot;NAME 2&quot;).DataRange.EntireRow, _
    .TableRange1)
        .Font.Bold = True
        .Interior.ColorIndex = 6
        
        End With
    End With
End With
End Sub</description>
		<content:encoded><![CDATA[<p>Hey Jon, </p>
<p>Running into another issue and would appreciate any help you can provide! My code was working fine for highlighting an entire row when I had it based on one condition only. When I try to just add in another section for a second condition (wanting the same result, the entire row highlighted) I receive an error (specifically with my End Sub). </p>
<p>Sub FormatPT1()<br />
Dim c As Range</p>
<p>With ActiveSheet.PivotTables(&#8220;PivotTable1&#8243;)</p>
<p>&#8221; reset default formatting<br />
With .TableRange1<br />
    .Font.Bold = False<br />
    .Interior.ColorIndex = 0<br />
End With</p>
<p>With ActiveSheet.PivotTables(1)<br />
With Intersect(.PivotFields(&#8220;BRAND DESCRIPTION&#8221;).PivotItems(&#8220;NAME 2&#8243;).DataRange.EntireRow, _<br />
    .TableRange1)<br />
        .Font.Bold = True<br />
        .Interior.ColorIndex = 6</p>
<p>With ActiveSheet.PivotTables(1)<br />
With Intersect(.PivotFields(&#8220;BRAND DESCRIPTION&#8221;).PivotItems(&#8220;NAME 2&#8243;).DataRange.EntireRow, _<br />
    .TableRange1)<br />
        .Font.Bold = True<br />
        .Interior.ColorIndex = 6</p>
<p>        End With<br />
    End With<br />
End With<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nuno Leal</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-25618</link>
		<dc:creator>Nuno Leal</dc:creator>
		<pubDate>Mon, 18 Jan 2010 00:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-25618</guid>
		<description>Hi Jon,

I had finally the opportunity to evolve on top of your nice code example, adapting the data range selection technique to my data, and I must say it was a really good push towards my goal! What a splendid work you&#039;re doing! Please keep on doing it, sharing with everybody these high quality, not easy to find, bits of information! Thank you!

As I told you previously, my real world pivot table gets its data from an Access SQL query, forcing me to delve into some additional issues. But overall this problem is solved, thanks to your invaluable help! 

There&#039;s one last problem still unsolved, however. Even though it&#039;s not a &quot;must to have&quot;, any insight would be greatly appreciated. Compact layout tables (Excel 2007) have several advantages that are worth keeping, but with them this code unfortunately doesn&#039;t work. Oddly enough, if we set &quot;Cat2&quot;&#039;s field settings to &quot;Show item labels in outline form&quot;, the ranges returned by the row selection (pi1) loop revert to empty single row, two column ones. These have empty cells if we don&#039;t use category sub-totals at top row level. The real data ranges aren&#039;t returned at all...

Any ideas?

Once again, many thanks!

NL</description>
		<content:encoded><![CDATA[<p>Hi Jon,</p>
<p>I had finally the opportunity to evolve on top of your nice code example, adapting the data range selection technique to my data, and I must say it was a really good push towards my goal! What a splendid work you&#8217;re doing! Please keep on doing it, sharing with everybody these high quality, not easy to find, bits of information! Thank you!</p>
<p>As I told you previously, my real world pivot table gets its data from an Access SQL query, forcing me to delve into some additional issues. But overall this problem is solved, thanks to your invaluable help! </p>
<p>There&#8217;s one last problem still unsolved, however. Even though it&#8217;s not a &#8220;must to have&#8221;, any insight would be greatly appreciated. Compact layout tables (Excel 2007) have several advantages that are worth keeping, but with them this code unfortunately doesn&#8217;t work. Oddly enough, if we set &#8220;Cat2&#8243;&#8217;s field settings to &#8220;Show item labels in outline form&#8221;, the ranges returned by the row selection (pi1) loop revert to empty single row, two column ones. These have empty cells if we don&#8217;t use category sub-totals at top row level. The real data ranges aren&#8217;t returned at all&#8230;</p>
<p>Any ideas?</p>
<p>Once again, many thanks!</p>
<p>NL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nuno Leal</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-25577</link>
		<dc:creator>Nuno Leal</dc:creator>
		<pubDate>Sat, 16 Jan 2010 17:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-25577</guid>
		<description>Jon,

I have no words for what you just did! You shed some light into my problem, and couldn´t be more responsive and complete than you were. I&#039;m more than grateful.

Later on I hope to try this code. I&#039;ll need eventually to adapt it, as my table comes from an external Access query. Mainly use &quot;VisibleItems&quot; instead. I&#039;ll post my feedback.

Huge thanks!

NL</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>I have no words for what you just did! You shed some light into my problem, and couldn´t be more responsive and complete than you were. I&#8217;m more than grateful.</p>
<p>Later on I hope to try this code. I&#8217;ll need eventually to adapt it, as my table comes from an external Access query. Mainly use &#8220;VisibleItems&#8221; instead. I&#8217;ll post my feedback.</p>
<p>Huge thanks!</p>
<p>NL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/pivot-table-conditional-formatting-with-vba/comment-page-1/#comment-25575</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Sat, 16 Jan 2010 16:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2534#comment-25575</guid>
		<description>I set up this list in Excel 2003 (it would be a table in 2007)
&lt;p&gt;&lt;img src=&quot;http://peltiertech.com/images/2010-01/NunoList.png&quot; alt=&quot;Nuno&#039;s Data&quot; style=&quot;display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;/p&gt;
which produces this pivot table
&lt;p&gt;&lt;img src=&quot;http://peltiertech.com/images/2010-01/NunoPTblank.png&quot; alt=&quot;Nuno&#039;s Pivot Table&quot; style=&quot;display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;/p&gt;
The code does require using Intersect(), but it&#039;s not really inefficient.
&lt;pre class=&quot;vbasmall&quot;&gt;&lt;code&gt;Sub FormatByBlock()&lt;br /&gt;&#160;&lt;br /&gt;  Dim pi1 As PivotItem&lt;br /&gt;  Dim pi2 As PivotItem&lt;br /&gt;  Dim r As Range&lt;br /&gt;  Dim v As Variant&lt;br /&gt;  Dim i1 As Long&lt;br /&gt;  Dim i2 As Long&lt;br /&gt;  Dim vMax As Double&lt;br /&gt;  Dim c As Range&lt;br /&gt;&#160;&lt;br /&gt;  With ActiveSheet.PivotTables(&quot;PTformatted&quot;)&lt;br /&gt;&#160;&lt;br /&gt;    &#039; reset default formatting&lt;br /&gt;    With .DataBodyRange&lt;br /&gt;      .Font.Bold = False&lt;br /&gt;      .Interior.ColorIndex = 0&lt;br /&gt;    End With&lt;br /&gt;&#160;&lt;br /&gt;    &#039; loop to get ranges&lt;br /&gt;    For Each pi1 In .PivotFields(&quot;Cat2&quot;).PivotItems&lt;br /&gt;      For Each pi2 In .PivotFields(&quot;Cat3&quot;).PivotItems&lt;br /&gt;        Set r = Intersect(pi1.DataRange, pi2.DataRange)&lt;br /&gt;&#160;&lt;br /&gt;        &#039; find max in range&lt;br /&gt;        v = r.Value&lt;br /&gt;        vMax = v(LBound(v, 1), LBound(v, 2))&lt;br /&gt;        For i1 = LBound(v, 1) To UBound(v, 1)&lt;br /&gt;          For i2 = LBound(v, 2) To UBound(v, 2)&lt;br /&gt;            If v(i1, i2) &gt; vMax Then&lt;br /&gt;              vMax = v(i1, i2)&lt;br /&gt;            End If&lt;br /&gt;          Next&lt;br /&gt;        Next&lt;br /&gt;&#160;&lt;br /&gt;        &#039; highlight max in range&lt;br /&gt;        For i1 = LBound(v, 1) To UBound(v, 1)&lt;br /&gt;          For i2 = LBound(v, 2) To UBound(v, 2)&lt;br /&gt;            If v(i1, i2) = vMax Then&lt;br /&gt;              With r.Cells(i1 + 1 - LBound(v, 1), i2 + 1 - LBound(v, 2))&lt;br /&gt;                .Font.Bold = True&lt;br /&gt;                .Interior.ColorIndex = 6&lt;br /&gt;              End With&lt;br /&gt;            End If&lt;br /&gt;          Next&lt;br /&gt;        Next&lt;br /&gt;&#160;&lt;br /&gt;      Next&lt;br /&gt;    Next&lt;br /&gt;&#160;&lt;br /&gt;  End With&lt;br /&gt;End Sub&lt;/code&gt;&lt;/pre&gt;
Here is the formatted table
&lt;p&gt;&lt;img src=&quot;http://peltiertech.com/images/2010-01/NunoPTformatted.png&quot; alt=&quot;Nuno&#039;s Formatted Pivot Table&quot; style=&quot;display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I set up this list in Excel 2003 (it would be a table in 2007)</p>
<p><img src="http://peltiertech.com/images/2010-01/NunoList.png" alt="Nuno's Data" style="display: block; margin-left: auto; margin-right: auto;"/></p>
<p>which produces this pivot table</p>
<p><img src="http://peltiertech.com/images/2010-01/NunoPTblank.png" alt="Nuno's Pivot Table" style="display: block; margin-left: auto; margin-right: auto;"/></p>
<p>The code does require using Intersect(), but it&#8217;s not really inefficient.</p>
<pre class="vbasmall"><code>Sub FormatByBlock()&nbsp;  Dim pi1 As PivotItem  Dim pi2 As PivotItem  Dim r As Range  Dim v As Variant  Dim i1 As Long  Dim i2 As Long  Dim vMax As Double  Dim c As Range&nbsp;  With ActiveSheet.PivotTables("PTformatted")&nbsp;    ' reset default formatting    With .DataBodyRange      .Font.Bold = False      .Interior.ColorIndex = 0    End With&nbsp;    ' loop to get ranges    For Each pi1 In .PivotFields("Cat2").PivotItems      For Each pi2 In .PivotFields("Cat3").PivotItems        Set r = Intersect(pi1.DataRange, pi2.DataRange)&nbsp;        ' find max in range        v = r.Value        vMax = v(LBound(v, 1), LBound(v, 2))        For i1 = LBound(v, 1) To UBound(v, 1)          For i2 = LBound(v, 2) To UBound(v, 2)            If v(i1, i2) > vMax Then              vMax = v(i1, i2)            End If          Next        Next&nbsp;        ' highlight max in range        For i1 = LBound(v, 1) To UBound(v, 1)          For i2 = LBound(v, 2) To UBound(v, 2)            If v(i1, i2) = vMax Then              With r.Cells(i1 + 1 - LBound(v, 1), i2 + 1 - LBound(v, 2))                .Font.Bold = True                .Interior.ColorIndex = 6              End With            End If          Next        Next&nbsp;      Next    Next&nbsp;  End WithEnd Sub</code></pre>
<p>Here is the formatted table</p>
<p><img src="http://peltiertech.com/images/2010-01/NunoPTformatted.png" alt="Nuno's Formatted Pivot Table" style="display: block; margin-left: auto; margin-right: auto;"/></p>
]]></content:encoded>
	</item>
</channel>
</rss>
