Hi One and all,
This time I have come up with a macro which will disable the Saving As functionality of the Excel Workbook.
By using this macro, you can restrict user to use F12 or SaveAs button to save the current progress. Thus allowing only Saving (Ctrl + S) the file.
Here are the steps:-
1. Copy the Code.
2. Open the Excel Workbook.
3. Press Alt + F11 to open VB Window.
4. In ThisWorkbook Module, Paste the code.
5. Close VB Window.
6. Try Pressing F12 and Clicking Save As button in the File menu, it won't be working any more.
7. Macros should be enabled for this to work.
Here is the Code:-
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If SaveAsUI Then Cancel = True
End Sub
Regards,
Check the attached file:-
Comments
Post a Comment