ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   protect the worksheet (https://www.excelbanter.com/excel-worksheet-functions/86743-protect-worksheet.html)

jinvictor

protect the worksheet
 

I did a excel file for work, what i want is everybody can open it, but
they can't save(save as) or copy it. how can do that?
Thanx


--
jinvictor
------------------------------------------------------------------------
jinvictor's Profile: http://www.excelforum.com/member.php...o&userid=34099
View this thread: http://www.excelforum.com/showthread...hreadid=538719


davesexcel

protect the worksheet
 

here's one from J-Walk's excel for dummies

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
If SaveAsUI Then
MsgBox "You Cannot save a copy of this workbook!"
Cancel = True
End If
End Sub

this goes into a workbook module, search excel help if you need to find
it

this won't let you save the workbook when you are in excel......


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=538719



All times are GMT +1. The time now is 09:28 AM.

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