ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   FitToPagesWide (https://www.excelbanter.com/excel-programming/403844-fittopageswide.html)

Mike H.

FitToPagesWide
 
Sometimes I issue the command:

With ActiveSheet.PageSetup
.FitToPagesWide = 1
....etc...
end with

And the Pages Wide is more than 1. Any Ideas why this happens?


Dave Peterson

FitToPagesWide
 
Make sure you include the .zoom = false:

.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1



Mike H. wrote:

Sometimes I issue the command:

With ActiveSheet.PageSetup
.FitToPagesWide = 1
...etc...
end with

And the Pages Wide is more than 1. Any Ideas why this happens?


--

Dave Peterson

ward376

FitToPagesWide
 
* * * * .Zoom = False
* * * * .FitToPagesWide = 1
* * * * .FitToPagesTall = False


If you make the pages tall false, it will keep it to 1 page wide
regardless of the number of pages tall.

Cliff Edwards


All times are GMT +1. The time now is 08:32 PM.

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