ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Disable "Save As" Option (https://www.excelbanter.com/excel-discussion-misc-queries/1655-disable-%22save-%22-option.html)

Andy T

Disable "Save As" Option
 
Is there anyway of disabling the File/ Save As option from the toolbar in
Excel. I want to force the user to use a CommandButton save macro in the
form I have developed.

Thanks
--
Andy T

Harald Staff

Hi Andy

It's a little dangerous, given that the user may have multiple open files
and your code may err while restoring the functionality. However, your
workbook has a Before_Save event in the ThisWorkbook module that will give
you total control of the saving process. Like, set Cancel to true there and
call your own macro.

HTH. Best wishes Harald

"Andy T" skrev i melding
...
Is there anyway of disabling the File/ Save As option from the toolbar in
Excel. I want to force the user to use a CommandButton save macro in the
form I have developed.

Thanks
--
Andy T





All times are GMT +1. The time now is 12:18 AM.

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