<?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: Add Percentages on the Secondary Axis</title>
	<atom:link href="http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/</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: Thom Mitchell</title>
		<link>http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/comment-page-1/#comment-16062</link>
		<dc:creator>Thom Mitchell</dc:creator>
		<pubDate>Thu, 09 Jul 2009 01:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1099#comment-16062</guid>
		<description>I am trying to make the advanced Gantt chart -- 
 http://peltiertech.com/Excel/pix5/AdvGantt08ax.gif -- 
responsive to spin buttons to change the MinimumScale and MaximumScale values for the time axes. The chart has its &quot;Primary X Time Scale Axis&quot; along the bottom and &quot;Secondary Y Value Axis&quot; along the top edge of the chart.

The following VBA code in a worksheet module has no effect:
    Case &quot;$C$33&quot;
        ActiveSheet.ChartObjects(&quot;Chart 1&quot;).Chart.Axes(xlCategory).MinimumScale = _
           Target.Value + 39810
        ActiveSheet.ChartObjects(&quot;Chart 1&quot;).Chart.Axes(xlValue, xlSecondary). _ 
           MinimumScale = Target.Value + 39810

The spin button changes cell C33 (and other dependent cell values), but the chart does not change. I, too, am a VBA dummy...</description>
		<content:encoded><![CDATA[<p>I am trying to make the advanced Gantt chart &#8212;<br />
 <a href="http://peltiertech.com/Excel/pix5/AdvGantt08ax.gif" rel="nofollow">http://peltiertech.com/Excel/pix5/AdvGantt08ax.gif</a> &#8212;<br />
responsive to spin buttons to change the MinimumScale and MaximumScale values for the time axes. The chart has its &#8220;Primary X Time Scale Axis&#8221; along the bottom and &#8220;Secondary Y Value Axis&#8221; along the top edge of the chart.</p>
<p>The following VBA code in a worksheet module has no effect:<br />
    Case &#8220;$C$33&#8243;<br />
        ActiveSheet.ChartObjects(&#8220;Chart 1&#8243;).Chart.Axes(xlCategory).MinimumScale = _<br />
           Target.Value + 39810<br />
        ActiveSheet.ChartObjects(&#8220;Chart 1&#8243;).Chart.Axes(xlValue, xlSecondary). _<br />
           MinimumScale = Target.Value + 39810</p>
<p>The spin button changes cell C33 (and other dependent cell values), but the chart does not change. I, too, am a VBA dummy&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/comment-page-1/#comment-6492</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 03 Dec 2008 16:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1099#comment-6492</guid>
		<description>Hi Michael -

When you specify an axis, you use a syntax like this:

ActiveChart.Axes(xlValue, xlPrimary)

or

ActiveSheet.ChartObjects(&quot;Chart 1&quot;).Chart.Axes(xlCategory)

There are two arguments to the Axes() property. The first is xlCategory for the X axis and xlValue for the Y axis. The second is xlPrimary or xlSecondary, and the meaning is obvious. The second argument is optional, and assumed to be xlPrimary if missing. Simply insert the xlSecondary into the slot for thee second argument:

ActiveSheet.ChartObjects(&quot;Chart 1&quot;).Chart.Axes(xlCategory, xlSecondary)</description>
		<content:encoded><![CDATA[<p>Hi Michael -</p>
<p>When you specify an axis, you use a syntax like this:</p>
<p>ActiveChart.Axes(xlValue, xlPrimary)</p>
<p>or</p>
<p>ActiveSheet.ChartObjects(&#8220;Chart 1&#8243;).Chart.Axes(xlCategory)</p>
<p>There are two arguments to the Axes() property. The first is xlCategory for the X axis and xlValue for the Y axis. The second is xlPrimary or xlSecondary, and the meaning is obvious. The second argument is optional, and assumed to be xlPrimary if missing. Simply insert the xlSecondary into the slot for thee second argument:</p>
<p>ActiveSheet.ChartObjects(&#8220;Chart 1&#8243;).Chart.Axes(xlCategory, xlSecondary)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/comment-page-1/#comment-6490</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 03 Dec 2008 14:56:54 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1099#comment-6490</guid>
		<description>Hi Jon,
in http://peltiertech.com/Excel/Charts/AxisScaleLinkToSheet.html you show how to link the axis scales to cell values. This works fine for primary axis?
How can I use this code for secondary axis? - I&#039; a VBA dummy ;-)
Thanks for your reply</description>
		<content:encoded><![CDATA[<p>Hi Jon,<br />
in <a href="http://peltiertech.com/Excel/Charts/AxisScaleLinkToSheet.html" rel="nofollow">http://peltiertech.com/Excel/Charts/AxisScaleLinkToSheet.html</a> you show how to link the axis scales to cell values. This works fine for primary axis?<br />
How can I use this code for secondary axis? &#8211; I&#8217; a VBA dummy ;-)<br />
Thanks for your reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/comment-page-1/#comment-6454</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 02 Dec 2008 02:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1099#comment-6454</guid>
		<description>Hi John -

That&#039;s a good point. In many cases this technique would be much more difficult to implement. In this specific case, the person wanted to see the changes with respect to the initial value, the gross revenues. Any case that referenced a single value, say, the initial value or the final value, would work simply like this.

If you wanted to see the percentage change corresponding to each value change, I think you would have to calculate the percentages in the worksheet and apply them to each bar in the chart as a data label.</description>
		<content:encoded><![CDATA[<p>Hi John -</p>
<p>That&#8217;s a good point. In many cases this technique would be much more difficult to implement. In this specific case, the person wanted to see the changes with respect to the initial value, the gross revenues. Any case that referenced a single value, say, the initial value or the final value, would work simply like this.</p>
<p>If you wanted to see the percentage change corresponding to each value change, I think you would have to calculate the percentages in the worksheet and apply them to each bar in the chart as a data label.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Mansfield</title>
		<link>http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/comment-page-1/#comment-6453</link>
		<dc:creator>John Mansfield</dc:creator>
		<pubDate>Tue, 02 Dec 2008 02:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1099#comment-6453</guid>
		<description>Jon,

Assuming an entirely different data set, another issue might be . . . how do you account for the percent changes when there are positive and negative values?  Or, for example, favorable and unfavorable variances to plan or greater than or less than changes to prior period?  In my experience rarely are the components of change all positive or all negative.  Perhaps rather than showing the percentages on an axis perhap each percent change could be individually tied to the differences between two bars.

As an example, an increase from 40 to 50 is 25%, but a decrease from 50 to 40 is 20%.

John Mansfield</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>Assuming an entirely different data set, another issue might be . . . how do you account for the percent changes when there are positive and negative values?  Or, for example, favorable and unfavorable variances to plan or greater than or less than changes to prior period?  In my experience rarely are the components of change all positive or all negative.  Perhaps rather than showing the percentages on an axis perhap each percent change could be individually tied to the differences between two bars.</p>
<p>As an example, an increase from 40 to 50 is 25%, but a decrease from 50 to 40 is 20%.</p>
<p>John Mansfield</p>
]]></content:encoded>
	</item>
</channel>
</rss>
