Finding how many pages wide the print area covers

Kalvas

New Member
Joined
Sep 17, 2013
Messages
6
Is there a way to find out how many pages the document will print, so that I can adjust the zoom level so that it only fits one page wide. I have tried fixing the page width to 1 page but the automatic page breaks dont allow me to display all the data I require on one page.

I figure if i can get the number of pages wide to a variable i could use a simple while statement to adjust the zoom level so that it only prints 1 page wide.

Any help with this situation would be appreciated. Or even a point in the right direction.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I understand that, and thanks for the reply SMB. Maybe I wasn't being Clear.. what i need is to be able to put it into a variable in VBA so that i can adjust the Zoom level to ensure that all the data i wish displayed only fits on one page. when i tried to fix it to one page the automatic page breaks threw the entire thing into disarray.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top