Results 1 to 4 of 4

Thread: How do I get reports to fit-to-one-page in Excel

  1. #1
    Join Date
    Mar 2009
    Posts
    55

    How do I get reports to fit-to-one-page in Excel

    I am working on a spreadsheet which has many columns & Row but when printing this file it just prints 4 pages instead to 2 pages. it prints 2 columns on the next page for both the spreadsheet.

    Can any one tell me how to adjust that columns to fit to one page while printing.

  2. #2
    Join Date
    May 2008
    Posts
    3,316

    Re: How do I get reports to fit-to-one-page in Excel

    You need to set the Zoom property to false :

    Code:
    With ActiveSheet.PageSetup
         .Zoom = False
         .FitToPagesWide = 1
         .FitToPagesTall = 1
    End With

  3. #3
    Join Date
    May 2008
    Posts
    4,345

    Re: How do I get reports to fit-to-one-page in Excel

    Try the following code... it will Help you!

    Code:
    Application. ScreenUpdating = False 
     Range("cpp_flag") = 1 
    Range("B:G,L:N,T:AK").EntireColumn.Hidden = True 
     
     
    ActiveSheet.PageSetup.PrintArea = "$A$7:$S$37" 
    With ActiveSheet.PageSetup 
        .TopMargin = Application.InchesToPoints(0.2) 
        .BottomMargin = Application.InchesToPoints(0.5) 
        .LeftMargin = Application.InchesToPoints(0.17) 
        .RightMargin = Application.InchesToPoints(0.18) 
        .HeaderMargin = Application.InchesToPoints(0) 
        .FooterMargin = Application.InchesToPoints(0) 
        .Orientation = xlPortrait 
        .CenterVertically = False 
        .FitToPagesWide = 1 
        .FitToPagesTall = 1 
    End With 
     
    End Sub

  4. #4
    Join Date
    Apr 2008
    Posts
    4,088

    Re: How do I get reports to fit-to-one-page in Excel

    In print preview select page tab and tick fit to 1 page wide by 1 page tall. Adjust margin to make reduction as small as possible.

Similar Threads

  1. Excel is only printing half page in Microsoft Excel
    By (Cowherd) in forum MS Office Support
    Replies: 2
    Last Post: 17-02-2012, 04:31 PM
  2. Replies: 2
    Last Post: 17-02-2012, 02:09 PM
  3. crystal reports connection to excel vba userform
    By shankar.nstl in forum Software Development
    Replies: 1
    Last Post: 01-10-2011, 03:44 PM
  4. crystal reports 9 for excel 2003
    By shankar.nstl in forum Software Development
    Replies: 4
    Last Post: 20-09-2011, 11:05 AM
  5. How to generate reports with IReport / Jasper Reports
    By JPGargoyle in forum Software Development
    Replies: 3
    Last Post: 24-04-2009, 05:48 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
  •  
Page generated in 1,717,383,060.97779 seconds with 16 queries