+ Reply to Thread
Results 1 to 5 of 5

Manipulating chart height & Pagebreak to accomodate

  1. #1
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,167

    Manipulating chart height & Pagebreak to accomodate

    Hi Guys

    In the attached file I am trying to achieve the following:
    - Each charts height to accommodate the number of legend entries
    - Same row space between each chart

    Have tried to achieve above with red snippets of code...

    - Set Page breaks so that the pdf created does not chop off charts...

    Any advice to assist in achieving my goal...

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 03-21-2019 at 02:49 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,167

    Re: Manipulating chart height & Pagebreak to accomodate

    Alrighty then...

    I managed to solve the chart distance by doing the following...
    Changing this snippet of code...
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Now just to solve the page breaks that ensures that charts do not get cut off...
    Any ideas...

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,167

    Re: Manipulating chart height & Pagebreak to accomodate

    Come on guys...Any ideas!!!!

    The attached upload has the charts placed on the sheet...As it would not be possible to get the page break rows prior to placing the charts - storing them into array to make use of later...The only other way I can think of is to move the page breaks after the charts have been placed...
    Attached Files Attached Files

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,167

    Re: Manipulating chart height & Pagebreak to accomodate

    This works, however, it is far to slow...Must be a simpler method!!!

    Please Login or Register  to view this content.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,167

    Re: Manipulating chart height & Pagebreak to accomodate

    Alright y then guys....Thanks so much for all your valuable input on this one lol....

    Storing the PB rows into an array first and then looping improves the speed down to 4 seconds or so...
    Please Login or Register  to view this content.
    Last edited by sintek; 03-23-2019 at 01:49 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. Help Needed With Manipulating Embedded Chart
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2015, 05:34 AM
  2. Manipulating range of a line chart using macros and buttons
    By econdude in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2013, 03:02 AM
  3. Do's and do not's when manipulating a chart in VBA
    By Jacc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2013, 11:09 AM
  4. Replies: 3
    Last Post: 03-22-2013, 12:19 AM
  5. Pagebreak Chart?
    By mycon73 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 10-03-2011, 05:03 PM
  6. Manipulating Chart series
    By Ola@ExcelTips in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-12-2007, 12:28 PM
  7. manipulating textbox in chart
    By Peter Hafner in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-31-2005, 07:06 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