<?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: Dynamic Chart using Pivot Table and VBA</title>
	<atom:link href="http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Thu, 18 Mar 2010 22:08:48 +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/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-26550</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Fri, 05 Feb 2010 15:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-26550</guid>
		<description>I&#039;ve never liked the pivot table styles in 2003. There are only so many, half of them are ugly, they are not readily customizable, and they do not reapply consistently. In 2007 there seem to be some formatting options, for pivot tables and worksheet tales, but after some initialpoking around, I have stopped trying to customize them.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never liked the pivot table styles in 2003. There are only so many, half of them are ugly, they are not readily customizable, and they do not reapply consistently. In 2007 there seem to be some formatting options, for pivot tables and worksheet tales, but after some initialpoking around, I have stopped trying to customize them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wypiszynski</title>
		<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-26548</link>
		<dc:creator>Steve Wypiszynski</dc:creator>
		<pubDate>Fri, 05 Feb 2010 15:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-26548</guid>
		<description>Great website, great ideas!

Wondering if you or any of your followers have ran into a situation where the default pivottables styles (from the design tab) don&#039;t always work as advertised.  For example, I&#039;m using &quot;Pivot Style Medium 15&quot;, but after refreshing the table, the headings always revert to black font on a black background which makes it impossible to read.

I&#039;ve ran into various &quot;features&quot; in Excel 2007 that are irritating, but can usually work around them.  However, I can&#039;t seem to rectify this situation, and it doesn&#039;t happen to all the pivot tables in my workbook.  In other words, sometimes the default style works, sometimes it doesn&#039;t.  I assume I&#039;ve tripped some setting, but can&#039;t figure out where.

I&#039;ve tried removing all formatting from the tab, no fill, setting font color to automatic, and reapplying the style, and same thing occurs.  In short, where the font is white, the font becomes black.

Thoughts?</description>
		<content:encoded><![CDATA[<p>Great website, great ideas!</p>
<p>Wondering if you or any of your followers have ran into a situation where the default pivottables styles (from the design tab) don&#8217;t always work as advertised.  For example, I&#8217;m using &#8220;Pivot Style Medium 15&#8243;, but after refreshing the table, the headings always revert to black font on a black background which makes it impossible to read.</p>
<p>I&#8217;ve ran into various &#8220;features&#8221; in Excel 2007 that are irritating, but can usually work around them.  However, I can&#8217;t seem to rectify this situation, and it doesn&#8217;t happen to all the pivot tables in my workbook.  In other words, sometimes the default style works, sometimes it doesn&#8217;t.  I assume I&#8217;ve tripped some setting, but can&#8217;t figure out where.</p>
<p>I&#8217;ve tried removing all formatting from the tab, no fill, setting font color to automatic, and reapplying the style, and same thing occurs.  In short, where the font is white, the font becomes black.</p>
<p>Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Parent</title>
		<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-25774</link>
		<dc:creator>Matthew Parent</dc:creator>
		<pubDate>Fri, 22 Jan 2010 01:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-25774</guid>
		<description>Thanks a lot Jon The now code is working great.   It is amazing what you can do with tables.</description>
		<content:encoded><![CDATA[<p>Thanks a lot Jon The now code is working great.   It is amazing what you can do with tables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tables</title>
		<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-25773</link>
		<dc:creator>tables</dc:creator>
		<pubDate>Fri, 22 Jan 2010 01:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-25773</guid>
		<description>Thanks a lot Jon :-)..now code is working fine

That is awesome, thank you! I had to adjust for having a line chart style and then all worked perfectly.</description>
		<content:encoded><![CDATA[<p>Thanks a lot Jon :-)..now code is working fine</p>
<p>That is awesome, thank you! I had to adjust for having a line chart style and then all worked perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-19023</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Sat, 12 Sep 2009 13:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-19023</guid>
		<description>Barb -

Oh, you wanted to do this programmatically. I didn&#039;t understand why you were having that problem.

Try using the address rather than the range object:

.Name = &quot;=&quot; &amp; rSeriesNames.Columns(iSeries).Address( , , xlR1C1, True)</description>
		<content:encoded><![CDATA[<p>Barb -</p>
<p>Oh, you wanted to do this programmatically. I didn&#8217;t understand why you were having that problem.</p>
<p>Try using the address rather than the range object:</p>
<p>.Name = &#8220;=&#8221; &#038; rSeriesNames.Columns(iSeries).Address( , , xlR1C1, True)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barb Reinhardt</title>
		<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-19017</link>
		<dc:creator>Barb Reinhardt</dc:creator>
		<pubDate>Sat, 12 Sep 2009 10:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-19017</guid>
		<description>I&#039;m not sure you understood the question, but I&#039;ve figured out most of it.   I still need to define the name of a chart series programmatically.    When I use something like this:

With cht.SeriesCollection(iSeries)
            .Name = rSeriesNames.Columns(iSeries)
            .Values = rValues.Columns(iSeries)
            .XValues = rCategories

        End With

There is a name tied to the series in the chart that I want, but it&#039;s not displayed in the series formula, nor is it displayed when I edit the series.   It looks like 

=SERIES(,Sheet1!B1:AC1,Sheet1!B2:AC2,1)  &#039;Don&#039;t have the series right in front of me.

I want something like this

=Series(Sheet1!A1,...

Thanks again, 

Barb</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure you understood the question, but I&#8217;ve figured out most of it.   I still need to define the name of a chart series programmatically.    When I use something like this:</p>
<p>With cht.SeriesCollection(iSeries)<br />
            .Name = rSeriesNames.Columns(iSeries)<br />
            .Values = rValues.Columns(iSeries)<br />
            .XValues = rCategories</p>
<p>        End With</p>
<p>There is a name tied to the series in the chart that I want, but it&#8217;s not displayed in the series formula, nor is it displayed when I edit the series.   It looks like </p>
<p>=SERIES(,Sheet1!B1:AC1,Sheet1!B2:AC2,1)  &#8216;Don&#8217;t have the series right in front of me.</p>
<p>I want something like this</p>
<p>=Series(Sheet1!A1,&#8230;</p>
<p>Thanks again, </p>
<p>Barb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-19010</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Sat, 12 Sep 2009 02:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-19010</guid>
		<description>Hi Barb -

You can simply select the series and edit the series formula in the formula bar. Alternatively (but less directly), you can open the source data dialog and change the definitions of the series name, X values, and Y values in the dialog.

Excel 2007 had problems at first when the series formula was edited directly, but SP1 or SP2 fixed that.</description>
		<content:encoded><![CDATA[<p>Hi Barb -</p>
<p>You can simply select the series and edit the series formula in the formula bar. Alternatively (but less directly), you can open the source data dialog and change the definitions of the series name, X values, and Y values in the dialog.</p>
<p>Excel 2007 had problems at first when the series formula was edited directly, but SP1 or SP2 fixed that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barb Reinhardt</title>
		<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-18994</link>
		<dc:creator>Barb Reinhardt</dc:creator>
		<pubDate>Fri, 11 Sep 2009 18:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-18994</guid>
		<description>Jon,

I&#039;d like to add the range &quot;ChtLabel&quot; as the XVal and &quot;Loc_13&quot; as the Value and have it display in the series definition.   Also, when I use your method, the &quot;name&quot; is not listed in the series formula.   It looks something like this

=SERIES(,&#039;Sheet1&#039;!$C$1:$AB$1,&#039;Sheet1&#039;!$C$14:$AB$14,13)

and I want

=SERIES(&quot;MyName&quot;,&#039;Sheet1&#039;!ChtLabel,&#039;Sheet1&#039;!Loc_13,13)

How would I go about doing that?

Thanks a bunch,
Barb</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>I&#8217;d like to add the range &#8220;ChtLabel&#8221; as the XVal and &#8220;Loc_13&#8243; as the Value and have it display in the series definition.   Also, when I use your method, the &#8220;name&#8221; is not listed in the series formula.   It looks something like this</p>
<p>=SERIES(,&#8217;Sheet1&#8242;!$C$1:$AB$1,&#8217;Sheet1&#8242;!$C$14:$AB$14,13)</p>
<p>and I want</p>
<p>=SERIES(&#8220;MyName&#8221;,&#8217;Sheet1&#8242;!ChtLabel,&#8217;Sheet1&#8242;!Loc_13,13)</p>
<p>How would I go about doing that?</p>
<p>Thanks a bunch,<br />
Barb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-18350</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 27 Aug 2009 17:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-18350</guid>
		<description>&lt;pre class=&quot;vbasmall&quot;&gt;Sub ColorBySeriesName()
  Dim rPatterns As Range
  Dim iSeries As Long
  Dim rSeries As Range
  Dim iColorIndex As Long
  Dim chtTemp As ChartObject
  &lt;font color=#0000FF&gt;Dim wsTemp As Worksheet&lt;/font&gt;
    
  Set rPatterns = ActiveSheet.Range(&quot;BC1:BD8&quot;)

  &lt;font color=#0000FF&gt;For Each wsTemp In ActiveWorkbook.Worksheets&lt;/font&gt;
    For Each chtTemp In wsTemp.ChartObjects

    With chtTemp.Chart
      For iSeries = 1 To .SeriesCollection.Count
        Set rSeries = rPatterns.Find(What:=.SeriesCollection(iSeries).Name)
        If Not rSeries Is Nothing Then
          iColorIndex = rSeries.Interior.ColorIndex
          With .SeriesCollection(iSeries)
            .Border.ColorIndex = iColorIndex
            .Border.Weight = xlMedium
            .MarkerForegroundColorIndex = iColorIndex
            .MarkerBackgroundColorIndex = iColorIndex
            .MarkerStyle = xlTriangle
          End With
        End If
      Next
    End With
    Next
  &lt;font color=#0000FF&gt;Next&lt;/font&gt;
End Sub&lt;br /&gt; 
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<pre class="vbasmall">Sub ColorBySeriesName()
  Dim rPatterns As Range
  Dim iSeries As Long
  Dim rSeries As Range
  Dim iColorIndex As Long
  Dim chtTemp As ChartObject
  <font color=#0000FF>Dim wsTemp As Worksheet</font>

  Set rPatterns = ActiveSheet.Range("BC1:BD8")

  <font color=#0000FF>For Each wsTemp In ActiveWorkbook.Worksheets</font>
    For Each chtTemp In wsTemp.ChartObjects

    With chtTemp.Chart
      For iSeries = 1 To .SeriesCollection.Count
        Set rSeries = rPatterns.Find(What:=.SeriesCollection(iSeries).Name)
        If Not rSeries Is Nothing Then
          iColorIndex = rSeries.Interior.ColorIndex
          With .SeriesCollection(iSeries)
            .Border.ColorIndex = iColorIndex
            .Border.Weight = xlMedium
            .MarkerForegroundColorIndex = iColorIndex
            .MarkerBackgroundColorIndex = iColorIndex
            .MarkerStyle = xlTriangle
          End With
        End If
      Next
    End With
    Next
  <font color=#0000FF>Next</font>
End Sub 
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: NMullis</title>
		<link>http://peltiertech.com/WordPress/dynamic-chart-using-pivot-table-and-vba/comment-page-1/#comment-18198</link>
		<dc:creator>NMullis</dc:creator>
		<pubDate>Tue, 25 Aug 2009 19:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=62#comment-18198</guid>
		<description>Jon, I have one more question. How can I apply this code to all charts in my workbook?

&lt;pre class=&quot;vbasmall&quot;&gt;Sub ColorBySeriesName()
  Dim rPatterns As Range
  Dim iSeries As Long
  Dim rSeries As Range
  Dim iColorIndex As Long
  Dim chtTemp As ChartObject
    
  Set rPatterns = ActiveSheet.Range(&quot;BC1:BD8&quot;)

  For Each chtTemp In ActiveSheet.ChartObjects

  With chtTemp.Chart
    For iSeries = 1 To .SeriesCollection.Count
      Set rSeries = rPatterns.Find(What:=.SeriesCollection(iSeries).Name)
      If Not rSeries Is Nothing Then
        iColorIndex = rSeries.Interior.ColorIndex
        With .SeriesCollection(iSeries)
          .Border.ColorIndex = iColorIndex
          .Border.Weight = xlMedium
          .MarkerForegroundColorIndex = iColorIndex
          .MarkerBackgroundColorIndex = iColorIndex
          .MarkerStyle = xlTriangle
        End With
      End If
    Next
  End With
  Next
End Sub&lt;br /&gt;&#160;
&lt;/pre&gt;

Thank you! Your assistance has been invaluable!
N</description>
		<content:encoded><![CDATA[<p>Jon, I have one more question. How can I apply this code to all charts in my workbook?</p>
<pre class="vbasmall">Sub ColorBySeriesName()
  Dim rPatterns As Range
  Dim iSeries As Long
  Dim rSeries As Range
  Dim iColorIndex As Long
  Dim chtTemp As ChartObject

  Set rPatterns = ActiveSheet.Range("BC1:BD8")

  For Each chtTemp In ActiveSheet.ChartObjects

  With chtTemp.Chart
    For iSeries = 1 To .SeriesCollection.Count
      Set rSeries = rPatterns.Find(What:=.SeriesCollection(iSeries).Name)
      If Not rSeries Is Nothing Then
        iColorIndex = rSeries.Interior.ColorIndex
        With .SeriesCollection(iSeries)
          .Border.ColorIndex = iColorIndex
          .Border.Weight = xlMedium
          .MarkerForegroundColorIndex = iColorIndex
          .MarkerBackgroundColorIndex = iColorIndex
          .MarkerStyle = xlTriangle
        End With
      End If
    Next
  End With
  Next
End Sub&nbsp;
</pre>
<p>Thank you! Your assistance has been invaluable!<br />
N</p>
]]></content:encoded>
	</item>
</channel>
</rss>
