+ Reply to Thread
Results 1 to 3 of 3

Chart to resize plot area based on horizontal axis data

  1. #1
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Chart to resize plot area based on horizontal axis data

    Not doing so good with this one. On this chart, in A1 I select either A or B and you can see how it pulls from the table in A15:B21.

    On the before mock-up, you select B from A1 and the horizontal axis is changed to the new data which is significantly shorter than the A category.

    I used the macro recorder to record me changing the plot area size, but it actually changes the Chart Area not the plot area.

    I've searched for a few macros and have found some to increase the size, but not one which will increase to the maximum available size or then shrink back to the size of category A.

    Any thoughts?
    Attached Files Attached Files
    HTH
    Regards, Jeff

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,429

    Re: Chart to resize plot area based on horizontal axis data

    try this event code on the Before worksheet

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Chart to resize plot area based on horizontal axis data

    Thank you Andy. This works great.

+ 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. Excel 2016 - can't resize the plot area
    By bstirling in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-17-2016, 05:47 AM
  2. [SOLVED] Automatically resize chart horizontal values when adding new data
    By worthm in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-12-2015, 11:04 AM
  3. Replies: 2
    Last Post: 11-27-2012, 01:25 PM
  4. [SOLVED] Dates on Horizontal Axis Cross Chart Area Border
    By Gnokrojam in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-22-2011, 12:01 PM
  5. Resize plot area in a chart area
    By Darlene in forum Excel General
    Replies: 0
    Last Post: 07-10-2006, 09:54 AM
  6. Resize chart area without resizing plot area
    By Janwillem van Dijk in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-01-2005, 09:05 PM
  7. [SOLVED] Resize chart area without resizing plot area
    By Janwillem van Dijk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2005, 09:05 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