+ Reply to Thread
Results 1 to 3 of 3

Changing axis between different charts

  1. #1
    Registered User
    Join Date
    07-17-2019
    Location
    Manchester, England
    MS-Off Ver
    MS office 2010
    Posts
    2

    Changing axis between different charts

    Hi,

    I'm looking at trying to change the axis of a line chart from dates to text values in a specified range. The way the spreadsheet is set up is that it will try and chart all the values along the date range for the x-axis but doesn't plot when that value is na(). I have noticed text values do not do the same thing so I am trying to control how far down the list of entries it goes before it displays na() results.

    I have tried using the code below but I keep coming up with an error in the final line of each side of the if statement when I run it.


    Please Login or Register  to view this content.
    Any advice would be greatly appreciated .

    Thanks.
    Last edited by AliGW; 07-17-2019 at 10:47 AM. Reason: Code tags added

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Changing axis between different charts

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-17-2019
    Location
    Manchester, England
    MS-Off Ver
    MS office 2010
    Posts
    2

    Re: Changing axis between different charts

    Thanks you for correcting. Sorry for not having them in.

+ 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. Replies: 2
    Last Post: 01-22-2015, 03:51 PM
  2. Charts: Format Axis -> Axis Options -> Fixed minimum and maximum
    By johnmata in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-28-2013, 05:53 PM
  3. Changing automatic minimum value of the y axis on a series of charts
    By Joeschmo5 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-09-2009, 03:57 AM
  4. Changing automatic value of the y axis on a series of charts
    By Joeschmo5 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-08-2009, 08:19 AM
  5. Replies: 8
    Last Post: 02-12-2009, 10:12 AM
  6. Replies: 0
    Last Post: 12-08-2007, 06:14 PM
  7. Excel Charts + VBA: Changing y-axis Format
    By TheRobsterUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2005, 10:05 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