ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   When "Save As" is selected (https://www.excelbanter.com/excel-programming/437073-when-save-selected.html)

Robert Crandal

When "Save As" is selected
 
Okay....if a user selects "Save As" from the menu, I
would like to display a message that states
"Save As is disabled!" I pretty much want to
prevent the "Save As" menu option from being selected.

Is this gonna be possible???

thank you everyone



Mike H

When "Save As" is selected
 
Robert,

Try this, Alt+F11 to open VB editor and double click 'ThisWorkbook' and
paste the code in on the right

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If SaveAsUI Then
MsgBox "Save As isn't allowed"
Cancel = True
End If
End Sub

Mike



"Robert Crandal" wrote:

Okay....if a user selects "Save As" from the menu, I
would like to display a message that states
"Save As is disabled!" I pretty much want to
prevent the "Save As" menu option from being selected.

Is this gonna be possible???

thank you everyone


.



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

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