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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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