<?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: Update Regular Chart when Pivot Table Updates</title>
	<atom:link href="http://peltiertech.com/WordPress/update-regular-chart-when-pivot-table-updates/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/update-regular-chart-when-pivot-table-updates/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Wed, 23 May 2012 11:03:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Maria</title>
		<link>http://peltiertech.com/WordPress/update-regular-chart-when-pivot-table-updates/comment-page-1/#comment-188084</link>
		<dc:creator>Maria</dc:creator>
		<pubDate>Fri, 02 Mar 2012 09:38:47 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=153#comment-188084</guid>
		<description>Hi again, Good morning!

Let&#039;s see if I can get some help this time...I have a pivot table with a filter field called CELL_NAME ..I am doing several charts of each CELL_NAME. 
I have the charts appearing in a different sheet(sheet 3) but I want them in a diferent sheet.The problem is that I need the filter field to be in the same sheet as the charts, as it is more user friendly.. so I would need to &#039;duplicate&#039; the filter for CELL_NAME to appear also in the same sheet as the charts.
I have tried with getpivotdata() but no luck and also I am not sure what is that function for..Also, I have thought that maybe it is posible to create a new pivot table and link both somehow...Although I would prefer not having two pivot tables....
any idea?
thanks in advance!!
Maria</description>
		<content:encoded><![CDATA[<p>Hi again, Good morning!</p>
<p>Let&#8217;s see if I can get some help this time&#8230;I have a pivot table with a filter field called CELL_NAME ..I am doing several charts of each CELL_NAME.<br />
I have the charts appearing in a different sheet(sheet 3) but I want them in a diferent sheet.The problem is that I need the filter field to be in the same sheet as the charts, as it is more user friendly.. so I would need to &#8216;duplicate&#8217; the filter for CELL_NAME to appear also in the same sheet as the charts.<br />
I have tried with getpivotdata() but no luck and also I am not sure what is that function for..Also, I have thought that maybe it is posible to create a new pivot table and link both somehow&#8230;Although I would prefer not having two pivot tables&#8230;.<br />
any idea?<br />
thanks in advance!!<br />
Maria</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria</title>
		<link>http://peltiertech.com/WordPress/update-regular-chart-when-pivot-table-updates/comment-page-1/#comment-184664</link>
		<dc:creator>Maria</dc:creator>
		<pubDate>Thu, 23 Feb 2012 17:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=153#comment-184664</guid>
		<description>Yes, exactly! THank you!
Maria</description>
		<content:encoded><![CDATA[<p>Yes, exactly! THank you!<br />
Maria</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/update-regular-chart-when-pivot-table-updates/comment-page-1/#comment-184662</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 23 Feb 2012 17:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=153#comment-184662</guid>
		<description>Maria -

Like this?

Dim sName As String
sName = ThisWorkbook.Worksheets(&quot;Sheet2&quot;).Range(&quot;A2&quot;).Value

.Name = sName
.Values = pt.PivotFields(&quot;Values&quot;).PivotItems(sName).DataRange</description>
		<content:encoded><![CDATA[<p>Maria -</p>
<p>Like this?</p>
<p>Dim sName As String<br />
sName = ThisWorkbook.Worksheets(&#8220;Sheet2&#8243;).Range(&#8220;A2&#8243;).Value</p>
<p>.Name = sName<br />
.Values = pt.PivotFields(&#8220;Values&#8221;).PivotItems(sName).DataRange</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria</title>
		<link>http://peltiertech.com/WordPress/update-regular-chart-when-pivot-table-updates/comment-page-1/#comment-184650</link>
		<dc:creator>Maria</dc:creator>
		<pubDate>Thu, 23 Feb 2012 16:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=153#comment-184650</guid>
		<description>It is me again! Is is posible to create pointers in VBA?
I have a config table with all the parameters in sheet2 of the xlms.
    Series                     Graph Title	              Legend	            GRAPH_LOCATION	X-Axis
 TCH_ASS_FR	        TCH_Assignment	xlLegendPositionBottom		                    DATETIME
 TCH_ASS_SUC 	TCH_Assignment	xlLegendPositionBottom		                    DATETIME
 TCH_ASS_ATT	        TCH_Assignment	xlLegendPositionBottom		                   DATETIME

And in the previous macro , I would like to automatically create charts when inserting data in the config table. For that, I am trying to get the name from the column &#039;Series&#039; and what is more difficult, get the data from the column of the pivot table which belongs to that name ( In this case &quot; $Sheet2!A2&quot;= TCH_ASS_FR )

 .Name = &quot; $Sheet2!A2&quot;
         .Values = pt.PivotFields(&quot;Values&quot;).PivotItems(&quot; $Sheet2!A2&quot;).DataRange

Any idea?
Thanks again!
Maria</description>
		<content:encoded><![CDATA[<p>It is me again! Is is posible to create pointers in VBA?<br />
I have a config table with all the parameters in sheet2 of the xlms.<br />
    Series                     Graph Title	              Legend	            GRAPH_LOCATION	X-Axis<br />
 TCH_ASS_FR	        TCH_Assignment	xlLegendPositionBottom		                    DATETIME<br />
 TCH_ASS_SUC 	TCH_Assignment	xlLegendPositionBottom		                    DATETIME<br />
 TCH_ASS_ATT	        TCH_Assignment	xlLegendPositionBottom		                   DATETIME</p>
<p>And in the previous macro , I would like to automatically create charts when inserting data in the config table. For that, I am trying to get the name from the column &#8216;Series&#8217; and what is more difficult, get the data from the column of the pivot table which belongs to that name ( In this case &#8221; $Sheet2!A2&#8243;= TCH_ASS_FR )</p>
<p> .Name = &#8221; $Sheet2!A2&#8243;<br />
         .Values = pt.PivotFields(&#8220;Values&#8221;).PivotItems(&#8221; $Sheet2!A2&#8243;).DataRange</p>
<p>Any idea?<br />
Thanks again!<br />
Maria</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria</title>
		<link>http://peltiertech.com/WordPress/update-regular-chart-when-pivot-table-updates/comment-page-1/#comment-184644</link>
		<dc:creator>Maria</dc:creator>
		<pubDate>Thu, 23 Feb 2012 15:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=153#comment-184644</guid>
		<description>Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/update-regular-chart-when-pivot-table-updates/comment-page-1/#comment-184642</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 23 Feb 2012 15:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=153#comment-184642</guid>
		<description>Maria -

If SetSourceData includes any pivot table data, the chart will automatically convert into a pivot chart based on that pivot table.

You have to make sure a blank cell surrounded by blank cells is selected before you use ChartObjects.Add, which will produce a blank chart with no data series. Then you have to add each series:

&lt;pre class=&quot;vbasmall&quot;&gt;&lt;code&gt;With ActiveSheet.ChartObjects.Add(left, top, width, height).Chart
  With .SeriesCollection.NewSeries &#039; first series
    .Values = whatever
    .XValues = whatever
    .Name = whatever
    .ChartType = xlLine
  End With
  With .SeriesCollection.NewSeries &#039; subsequent series
    .Values = whatever2
    .XValues = whatever2
    .Name = whatever2
    .ChartType = xlLine
  End With
End With&lt;/code&gt;&lt;/pre&gt;

Also, Range(“22B:26B”) is incorrect. If you want that particular range it is referenced as Range(“B22:B26”). But again, you probably do not want to use SetSourceData.</description>
		<content:encoded><![CDATA[<p>Maria -</p>
<p>If SetSourceData includes any pivot table data, the chart will automatically convert into a pivot chart based on that pivot table.</p>
<p>You have to make sure a blank cell surrounded by blank cells is selected before you use ChartObjects.Add, which will produce a blank chart with no data series. Then you have to add each series:</p>
<pre class="vbasmall"><code>With ActiveSheet.ChartObjects.Add(left, top, width, height).Chart
  With .SeriesCollection.NewSeries ' first series
    .Values = whatever
    .XValues = whatever
    .Name = whatever
    .ChartType = xlLine
  End With
  With .SeriesCollection.NewSeries ' subsequent series
    .Values = whatever2
    .XValues = whatever2
    .Name = whatever2
    .ChartType = xlLine
  End With
End With</code></pre>
<p>Also, Range(“22B:26B”) is incorrect. If you want that particular range it is referenced as Range(“B22:B26”). But again, you probably do not want to use SetSourceData.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

