ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Prevent Printing (https://www.excelbanter.com/excel-discussion-misc-queries/243180-prevent-printing.html)

Steven Chan

Prevent Printing
 
When I password protect my shared worksheet, it is possible to also prevent
the worksheet from being printed. Please adz.

Dave Peterson

Prevent Printing
 
You could stop printing with an event macro, but macros and events can be
disabled.

So the answer is not really.

Steven Chan wrote:

When I password protect my shared worksheet, it is possible to also prevent
the worksheet from being printed. Please adz.


--

Dave Peterson

Gord Dibben

Prevent Printing
 
You cannot share a worksheet.

You can share a workbook.

Do you want to prevent the shared workbook or any sheet therein from being
printed?

You could use beforeprint event code to cancel any printing but macros would
have to be enabled.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
MsgBox "you are not allowed to print"
Cancel = True
End Sub

First you must unshare the workbook.

Paste the code into Thisworkbook module.

Re-share the workbook, which saves it.


Gord Dibben MS Excel MVP

On Sat, 19 Sep 2009 10:55:02 -0700, Steven Chan
wrote:

When I password protect my shared worksheet, it is possible to also prevent
the worksheet from being printed. Please adz.



Steven Chan

Prevent Printing
 
Yes, to share a workbook not worksheet. Tried as recommended and it work,
Thanks.

Steven Chan


"Gord Dibben" wrote:

You cannot share a worksheet.

You can share a workbook.

Do you want to prevent the shared workbook or any sheet therein from being
printed?

You could use beforeprint event code to cancel any printing but macros would
have to be enabled.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
MsgBox "you are not allowed to print"
Cancel = True
End Sub

First you must unshare the workbook.

Paste the code into Thisworkbook module.

Re-share the workbook, which saves it.


Gord Dibben MS Excel MVP

On Sat, 19 Sep 2009 10:55:02 -0700, Steven Chan
wrote:

When I password protect my shared worksheet, it is possible to also prevent
the worksheet from being printed. Please adz.




Gord Dibben

Prevent Printing
 
Thanks for the feedback.


Gord

On Sat, 19 Sep 2009 17:03:02 -0700, Steven Chan
wrote:

Yes, to share a workbook not worksheet. Tried as recommended and it work,
Thanks.

Steven Chan


"Gord Dibben" wrote:

You cannot share a worksheet.

You can share a workbook.

Do you want to prevent the shared workbook or any sheet therein from being
printed?

You could use beforeprint event code to cancel any printing but macros would
have to be enabled.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
MsgBox "you are not allowed to print"
Cancel = True
End Sub

First you must unshare the workbook.

Paste the code into Thisworkbook module.

Re-share the workbook, which saves it.


Gord Dibben MS Excel MVP

On Sat, 19 Sep 2009 10:55:02 -0700, Steven Chan
wrote:

When I password protect my shared worksheet, it is possible to also prevent
the worksheet from being printed. Please adz.






All times are GMT +1. The time now is 07:23 PM.

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