Consulting

Results 1 to 2 of 2

Thread: Can I use vba to set page breaks and fit the sheet’s data to 3 pages?

  1. #1
    VBAX Expert
    Joined
    Sep 2010
    Posts
    604
    Location

    Can I use vba to set page breaks and fit the sheet’s data to 3 pages?

    Please see the attached workbook. --100 rows (Columns A thru O)--

    Currently the print area's data will require about (3 1/2) pages and will print a few of the columns on separate pages.

    Is there some sort of a fit to page command that I can use and set the page breaks at the intervals of my choosing, so that everything will fit onto three pages?
    Attached Files Attached Files

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Hi frank,

    You can get Excel to zoom the printout to fit a specified number of pages, via File|Page Setup|Page > Fit to (Excel 2003 & earlier) or Page Layout|Page Setup|Page > Fit to (Excel 2007 & later).

    You can then insert manual page breaks wherever you want them via Insert|Page Break (Excel 2003 & earlier) or Page Layout|Breaks (Excel 2007 & later).
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •