Esthetical problem when printing

webster188

New Member
Joined
Oct 20, 2010
Messages
31
Hi,

I am stuck on a simple but for me unsolvable problem. Hope somebody can help me.

I have a worksheet with my user interface and several hidden sheets where calculations are performed.
There is also a hidden sheet where the result of the calculations are grouped in a nice layout for printing.

But whenever I issue a print command (printing is started from a custom menu - print command is given via VBA), I get on my user interface page the typical lines with which Excel indicates the page size (or print area).
I have no clue how to avoid this to happen.

Regards,

Dimitri
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
You'll need to add a line akin to:
ActiveSheet.DisplayPageBreaks = False
to the macro, perhaps adjust the sheet's name in this line:
Sheets("your user interface sheet name here").DisplayPageBreaks = False
towards the end of the macro.
If you post the macro's code…
 
Upvote 0
Thanks for the quick answer.
I knew that there would be a property for this but couldn't find it.

Works like a charm. Thanks again :)

Regards,

Dimitri
 
Upvote 0

Forum statistics

Threads
1,224,538
Messages
6,179,412
Members
452,912
Latest member
alicemil

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