ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to print fitted 1 page width and 1 page tall (https://www.excelbanter.com/excel-programming/365861-how-print-fitted-1-page-width-1-page-tall.html)

SupperDuck

How to print fitted 1 page width and 1 page tall
 
Dear all,

I can select print area with code. But cannot make the print our.

But the selected place must fit on 1 page tall &width.

thanks...


Ron de Bruin

How to print fitted 1 page width and 1 page tall
 
Hi SupperDuck

Try

With ActiveSheet.PageSetup
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
.Orientation = xlLandscape
End With

--
Regards Ron De Bruin
http://www.rondebruin.nl



"SupperDuck" wrote in message ...
Dear all,

I can select print area with code. But cannot make the print our.

But the selected place must fit on 1 page tall &width.

thanks...





All times are GMT +1. The time now is 07:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com