+ Reply to Thread
Results 1 to 4 of 4

Automatically Adjust Y-Axis Min and Max

  1. #1
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Automatically Adjust Y-Axis Min and Max

    I was able to find some GREAT code to automatically resize the min and max Y-Axis for every graph on a workbook. Its great!

    My problem is that I dont WANT to change them all. HA.... just Chart 14,Chart 15,and Chart 16

    I have attempted to alter the code below to do my bidding but alas- I'm not a coder. If anyone could have a try I would be very appreciative.

    -Ken

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Automatically Adjust Y-Axis Min and Max

    Please Login or Register  to view this content.
    added a Select Case statement into code

    just add/remove chart names you want to include/exclude in line below
    Please Login or Register  to view this content.
    names added will make it run the code for it
    names not on here will just get skipped
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Automatically Adjust Y-Axis Min and Max

    May I just say WOW humdingaling!!!! It works great. This little diddy will same me SSSOOOO much time. I hope that others will see this code and use it for their own applications.

    Thanks again so much!!!

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Automatically Adjust Y-Axis Min and Max

    not a problem
    glad to help

    Thanks for the rep

+ 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] VBA to adjust a chart's secondary axis
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-28-2017, 10:38 PM
  2. Replies: 2
    Last Post: 04-21-2014, 03:26 PM
  3. pivot chart: x-axis doesn't adjust automatically
    By Franky DK in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 12-02-2013, 11:03 AM
  4. Can a formula be used to automatically adjust data used on an Axis?
    By Grimace in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2012, 01:21 AM
  5. How do you adjust Line Chart X-Axis min and max using VBA?
    By ThomasHaller in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-21-2011, 10:26 AM
  6. Automaticaly adjust chart X axis
    By aljanga in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-21-2010, 10:26 AM
  7. Script to auto-adjust y-axis min
    By VandyClint in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2007, 06:19 PM

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