ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Limit Printing on specific worksheets in Excel (https://www.excelbanter.com/excel-discussion-misc-queries/144298-limit-printing-specific-worksheets-excel.html)

[email protected]

Limit Printing on specific worksheets in Excel
 
Here's my problem:

I was able to find some code to disable printing for the entire
workbook:

http://groups.google.ca/group/micros...969e4036463e2c

But...I would like to limit printing on some pages and not others.
Here's my situation. I have month A's schedule completed and ready for
distribution. I don't have month B's schedule ready yet. I don't want
any user to be able to print month B's schedule but at the same time I
don't want to have to hide and unhide it all the time. Is there a
happy medium?


Sandy Mann

Limit Printing on specific worksheets in Excel
 
wrote in message
oups.com...

Here's my situation. I have month A's schedule completed and ready for
distribution. I don't have month B's schedule ready yet. I don't want
any user to be able to print month B's schedule


You could write a BeforePrint Macro but then you would never be able to
print anything else. You could add an option in the BeforePrint Macro to
ask if you want to set the Print Area and exit the Sub() if not but then any
user could select that option and thus print Month B's before it is ready.

A third option would be to have the BeforePrint Macro to check an entry in
the spreadsheet and if it has the right data, (which only you know), exit
the Sub()

What exactly is it you want to do?
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk




Dave Peterson

Limit Printing on specific worksheets in Excel
 
Disable printing with the workbook_beforeprint event.

Provide a macro that only prints what you want to print.

In that macro, you'll have to disable events before you try to print, though.



wrote:

Here's my problem:

I was able to find some code to disable printing for the entire
workbook:

http://groups.google.ca/group/micros...969e4036463e2c

But...I would like to limit printing on some pages and not others.
Here's my situation. I have month A's schedule completed and ready for
distribution. I don't have month B's schedule ready yet. I don't want
any user to be able to print month B's schedule but at the same time I
don't want to have to hide and unhide it all the time. Is there a
happy medium?


--

Dave Peterson


All times are GMT +1. The time now is 01:04 AM.

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