+ Reply to Thread
Results 1 to 2 of 2

How to control Y-axis value?

  1. #1
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    140

    How to control Y-axis value?

    I cannot control Y-axis value of chart with Worksheet.ChartObjects("Chart 8").SeriesCollection(5).YValues = "=Sheet1!$A$4:$A$5", why....??
    chart.jpg

  2. #2
    Registered User
    Join Date
    02-22-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    15

    y axis value

    Hi,

    You need to read in the max and min values of your data series. Then use set your y upper and lower ranges to this values.

    Add a bit either side to the max and min so the tip and bottom of the graph is not at the extreme top or bottom.

  3. #3
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: y axis value

    Quote Originally Posted by techflutter View Post
    Hi,

    You need to read in the max and min values of your data series. Then use set your y upper and lower ranges to this values.

    Add a bit either side to the max and min so the tip and bottom of the graph is not at the extreme top or bottom.
    In example case I had set max as range("A4")=100,000; min as range("A5")=-100, but not work for YValue due to error438, Can I any method to control Y-axis?

  4. #4
    Forum Contributor
    Join Date
    03-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: y axis value

    Quote Originally Posted by techflutter View Post
    Hi,

    You need to read in the max and min values of your data series. Then use set your y upper and lower ranges to this values.

    Add a bit either side to the max and min so the tip and bottom of the graph is not at the extreme top or bottom.
    P.S. In sample case chart style is line; X-axis set max as range("B4")=2014-Jul-13; min as range("B5")=2014-Jul-13 which is work for XValue.
    Last edited by alee001; 08-05-2014 at 04:10 AM.

+ 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. Control Y Axis on Pivotchart when using Slicers
    By karl_popper in forum Excel General
    Replies: 3
    Last Post: 12-06-2012, 02:40 AM
  2. Excel 2007 - axis control in VBA (or else)
    By erupter in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-19-2011, 06:19 AM
  3. Control X axis order
    By StephanieH in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-18-2006, 04:10 AM
  4. [SOLVED] Better control of axis ranges
    By hmm in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-12-2006, 12:50 PM
  5. Pivot Charting x-axis control
    By optionbase1 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-13-2005, 07:34 PM

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