PC Review


Reply
Thread Tools Rate Thread

Changing a chart scale using a formula/macro

 
 
=?Utf-8?B?RG91Zw==?=
Guest
Posts: n/a
 
      10th Aug 2005
Is it possible to change the scale (min & max of the Y axis) of a chart
using a formula or macro. I need to be able to apply this to about 20
different sets of min & max numbers on the same chart.

Thanks,
Doug
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      10th Aug 2005
Doug -

The code is like this:

With ActiveChart.Axes(2,1)
.MinimumScale = <new minimum>
.MaximumScale = <new maximum>
End With

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Doug wrote:

> Is it possible to change the scale (min & max of the Y axis) of a chart
> using a formula or macro. I need to be able to apply this to about 20
> different sets of min & max numbers on the same chart.
>
> Thanks,
> Doug

 
Reply With Quote
 
=?Utf-8?B?RG91Zw==?=
Guest
Posts: n/a
 
      10th Aug 2005
Thanks,
Doug

"Jon Peltier" wrote:

> Doug -
>
> The code is like this:
>
> With ActiveChart.Axes(2,1)
> .MinimumScale = <new minimum>
> .MaximumScale = <new maximum>
> End With
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Peltier Technical Services
> Tutorials and Custom Solutions
> http://PeltierTech.com/
> _______
>
>
> Doug wrote:
>
> > Is it possible to change the scale (min & max of the Y axis) of a chart
> > using a formula or macro. I need to be able to apply this to about 20
> > different sets of min & max numbers on the same chart.
> >
> > Thanks,
> > Doug

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart scale automatically changing in ppt2007 Megan Microsoft Powerpoint 1 21st Apr 2010 10:37 PM
Changing chart scale automatically...any guidance appreciated ac512 Microsoft Access 0 24th Jul 2008 04:52 AM
Auto Scale Chart Macro -- Any improvements please? =?Utf-8?B?U3RldmVD?= Microsoft Excel Charting 2 19th Feb 2007 06:35 PM
Changing Time Scale to Seconds on Excel Chart =?Utf-8?B?SmFuZWluUEE=?= Microsoft Excel Charting 2 8th Mar 2006 09:29 PM
Change time scale in a chart by changing cell value Niels Microsoft Excel Discussion 1 28th Dec 2005 04:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:14 PM.