#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Prevent Printing

When I password protect my shared worksheet, it is possible to also prevent
the worksheet from being printed. Please adz.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default 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.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default 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.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default 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.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent color printing jemarin71 Excel Discussion (Misc queries) 2 September 11th 06 08:55 PM
Prevent Printing of Specific Cells Ken Mitchell Excel Discussion (Misc queries) 5 May 16th 06 07:26 PM
Prevent header from printing on 1st page? Bubba B Excel Discussion (Misc queries) 1 March 16th 06 07:09 PM
How do I prevent cell contents from printing? Tristan Excel Discussion (Misc queries) 2 March 1st 06 10:17 AM
How to prevent user from printing in Excel? C Wayne Excel Discussion (Misc queries) 3 June 14th 05 09:10 AM


All times are GMT +1. The time now is 01:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"