So I've got a worbook made for others to use that has the "save" disabled, to preserve the workbook.
I'd like to make a button or something that will open the 'save as' command but also comment out/disable the 'save disable' code, that way, they can save-as a new file in their own folder and not have to deal w/ the blocking.
Is this possible?
Here's what I'm using, placed on "ThisWorkbook" object.
I'd like to make a button or something that will open the 'save as' command but also comment out/disable the 'save disable' code, that way, they can save-as a new file in their own folder and not have to deal w/ the blocking.
Is this possible?
Here's what I'm using, placed on "ThisWorkbook" object.
Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If Not SaveAsUI Then
Cancel = True
MsgBox "To preserve workbook integretiy, 'SAVE' is disabled." & vbNewLine & "Please use 'SAVE AS' to your personal folder.", _
vbInformation, "Hello!" 'box title
End If
End Sub