+ Reply to Thread
Results 1 to 6 of 6

Max/min chart auto-scale

  1. #1
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Max/min chart auto-scale

    I have been looking for a code that will automatically set the max and min scale on pivot chart but have had no luck without actually having to reference a cell or range. I found the code below off a forum, which works great setting the max scale. Basically, I am trying to set the max and min Y axis values to the largest and smallest numbers in my chart, which has 4 series. Any help would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Max/min chart auto-scale

    If the code works fine for you with setting Max, then small changes would add Min too:

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Max/min chart auto-scale

    If the code works fine for you with setting Max, then small changes would add Min too:

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Max/min chart auto-scale

    If the code works fine for you with setting Max, then small changes would add Min too:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Re: Max/min chart auto-scale

    Great that works! Thank you Kaper! Now that it can do this, how can i alter the code to loop through all the pivotcharts in my workbook?

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Max/min chart auto-scale

    Try:
    Please Login or Register  to view this content.
    (note, that it is correcting all charts, not only pivot charts).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Make the scale of one chart dependent on the scale of another chart
    By behrensf84 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-01-2014, 03:31 AM
  2. Excel auto re-scale chart x-axis? Excel 2007
    By witchcraftz in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-12-2013, 04:01 PM
  3. Excel auto re-scale chart x-axis? Excel 2007
    By witchcraftz in forum Excel General
    Replies: 0
    Last Post: 02-12-2013, 04:01 PM
  4. Excel 2007 : Y-Axis Chart Auto-Scale
    By eriol in forum Excel General
    Replies: 6
    Last Post: 06-13-2010, 08:33 AM
  5. Auto Scale axis on excel Chart
    By DKerr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2010, 02:56 AM
  6. Replies: 7
    Last Post: 01-13-2009, 09:33 AM
  7. Urgent - X and Y Axis Auto Scale for Chart
    By Sandi in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-09-2006, 04:10 AM
  8. [SOLVED] Chart Axis Scale Auto Values
    By Moses Bunting in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-08-2005, 11:05 AM

Tags for this Thread

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.6.0 RC 1