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?
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.