+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Doug
    Guest

    Changing a chart scale using a formula/macro

    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

  2. #2
    Jon Peltier
    Guest

    Re: Changing a chart scale using a formula/macro

    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


  3. #3
    Doug
    Guest

    Re: Changing a chart scale using a formula/macro

    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

    >


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0