ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Protect spreadsheet from being saved (https://www.excelbanter.com/excel-discussion-misc-queries/132944-protect-spreadsheet-being-saved.html)

Otto

Protect spreadsheet from being saved
 
Is it possible to protect a spreadsheet from being saved under a different
name or in a different folder? I have people that will save a training
schedule to their own directory and then not get the updates.

Mike

Protect spreadsheet from being saved
 
use the before close workbook event

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

this immediatly cancels save as as soon as it is selected provide macros are
enabled

"Otto" wrote:

Is it possible to protect a spreadsheet from being saved under a different
name or in a different folder? I have people that will save a training
schedule to their own directory and then not get the updates.


Otto

Protect spreadsheet from being saved
 
Thanks, Mike but this is way over my head. Where does this go?

"Mike" wrote:

use the before close workbook event

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

this immediatly cancels save as as soon as it is selected provide macros are
enabled

"Otto" wrote:

Is it possible to protect a spreadsheet from being saved under a different
name or in a different folder? I have people that will save a training
schedule to their own directory and then not get the updates.



All times are GMT +1. The time now is 10:38 AM.

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