+ Reply to Thread
Results 1 to 5 of 5

Improve "Fit Sheet on One Page"! Alter print area ratio to = A4 sheet ratio

  1. #1
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Lightbulb Improve "Fit Sheet on One Page"! Alter print area ratio to = A4 sheet ratio

    I often use 'Fit Sheet on One Page'. However this works by shrinking the printout so that it fits on one page.

    If your sheets print area height/width ratio is out to the ratio of the sheet you are printing on then there will be wasted white space on the sides of the sheet.

    My idea is to alter the ratio of the print area so that it matches the ratio of an A4 sheet (1:1.414)

    I aim to alter the ratio by proportionally increasing the widths of all columns in the print area.

    However before I write this, I need a reliable way to measure the height (being the combined heights of all rows in the print area) and the width (being the combined widths of all columns in the print area). I do know how to get the width of one column or height of one row - but how do I quickly pickup the total height/width of the print area?

    Suggestions on how to measure this anyone? (Code appreciated if you can)
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Improve "Fit Sheet on One Page"! Alter print area ratio to = A4 sheet ratio

    As far as i know you would just have to loop through the rows (or columns)... like below. interesting if someone has a better idea.

    Please Login or Register  to view this content.
    (assuming you set your print area to the used range)
    Last edited by scottiex; 08-26-2015 at 09:42 PM.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Improve "Fit Sheet on One Page"! Alter print area ratio to = A4 sheet ratio

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Improve "Fit Sheet on One Page"! Alter print area ratio to = A4 sheet ratio

    Thanks for your help scottiex and AlphaFrog! +1

    I will work out some code over the next few days and post the final result here for anyone interested.

  5. #5
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Improve "Fit Sheet on One Page"! Alter print area ratio to = A4 sheet ratio

    As promised, here's my code. It's only the first draft so let me know if anything needs improving and I will update it!

    Please Login or Register  to view this content.

+ 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. Printing an area (A1:I272) on a different sheet than the "Print" button is on
    By cmsandiford in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2014, 11:58 AM
  2. Replies: 3
    Last Post: 01-02-2014, 02:15 PM
  3. [SOLVED] Divide x/y should give Ratio x:y,How to express ratio in excel
    By arvind3738 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2006, 03:29 AM
  4. Excel: Narrow print area to wrap to 2nd "column" on page
    By wood nerd in forum Excel General
    Replies: 0
    Last Post: 05-03-2006, 07:15 PM
  5. Replies: 4
    Last Post: 12-17-2005, 08:15 PM
  6. resize the sheet font with a ratio
    By Meer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-05-2005, 12:06 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