+ Reply to Thread
Results 1 to 5 of 5

how to change the axis label range of chart in excel vba

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    how to change the axis label range of chart in excel vba

    Hello

    How can we change the Axis Label Range of a chart in excel vba ? or it is something that is unchangeable and determined by Excel itself?


    Best Regards
    Imran Bhatti
    Teach me Excel VBA

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: how to change the axis label range of chart in excel vba

    Hi,

    You set the XValues property of a series on that axis to whatever range you want.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: how to change the axis label range of chart in excel vba

    Thanks xlnitwit
    I want to set the Range("A7:A54") as an Axis Label Range at run time,what would be the method.In other words
    I need to switch the Axis label range from one that is already in the chart (manually) to another Range("A7:A54") at run time.
    My chartsheet name is =Chart14
    Sheet Name=Sheets("DataValue") ' in which the actual data resides

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: how to change the axis label range of chart in excel vba

    You would require something like
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: how to change the axis label range of chart in excel vba

    will inform you after testing. Thanks for taking the time,

+ 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. How do you change horizontal axis label values on Excel Online?
    By fluffycactus in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-14-2016, 01:06 PM
  2. change to chart primary horizontal axis label or name
    By pwynkoop in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 04-10-2013, 01:30 AM
  3. Trying to get VBA to use my Chart Axis Label name range
    By jacob@thepenpoint in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2012, 09:04 AM
  4. Replies: 1
    Last Post: 09-02-2011, 08:57 AM
  5. Excel Chart Y Axis Label Format Problem
    By Jessica.Bush in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-13-2009, 08:14 AM
  6. label the category axis from 0 to 30, step 5 in an excel chart
    By johnny hanlon in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-28-2006, 08:15 PM
  7. [SOLVED] In Excel how do I label the axis of a chart with 2 sets of labels
    By Alan in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-13-2005, 11:05 AM

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