ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Prevent Copy action Q (https://www.excelbanter.com/excel-programming/405067-prevent-copy-action-q.html)

Sean

Prevent Copy action Q
 

Is there a way to prevent the "copy" action being allowed, similar to
below for preventing saving, I also have one that prevents a file from
being printed? Can't use the obvious protection facility

Thanks


Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
Cancel = True
End Sub

Mike H

Prevent Copy action Q
 
One method here

http://www.vbaexpress.com/kb/getarticle.php?kb_id=373

Mike

"Sean" wrote:


Is there a way to prevent the "copy" action being allowed, similar to
below for preventing saving, I also have one that prevents a file from
being printed? Can't use the obvious protection facility

Thanks


Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
Cancel = True
End Sub



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

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