Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty Pages When I Print From Excel

Status
Not open for further replies.

jbl1167

Programmer
Oct 2, 2006
78
US
We do print thousands of Excel Documents. One of the problems that we have is that when we print there could be hundreeds of empty pages. How could I eliminate empty pages from Excel programatically?

Thank you
 
Print filled range only:
Range("ReferenceToPrintedRange").Printout)

To customise printing, you can adjust printed range pages per height/width:
WithWorksheets("PrintedWorksheet").PageSetup
.FitToPagesWide = 999
.FitToPagesTall = 1
' or
.FitToPagesWide = 1
.FitToPagesTall = 999
End Width

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top