Printing range in excel

jantea.marius

New Member
Joined
Sep 15, 2011
Messages
1
Hi there!
I have an excel missunderstanding. It is about VBA programming and printing size limits.
I have done a little tool in VBA - excel macro, that adjusts the page margins (top, bottom, left, right, header and footer).
It is very useful (at least for me) because the user can select as many files as he wants and this tool will adjusts all the sheets from those documents.
You can insert also header / footer values into the documents.
However, I still have a problem: How can I adjust the page size for printing? I mean when I select for example a landscape page and that page should be portrait, it will be printed on different pages. I know that it is possible to adjust the width of the page instead of adjusting to a percent from the normal size. But one or many of those documents may include one or more pages.
What I want to be done using this tool, beside its present functionality is to auto adjust that percent of the normal size and to set the print range to be all the used range from all the sheets.
Thanks and sorry for my english.
Have a nice day!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,196
Latest member
Maxkapoor

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