Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable Save and Save As
Excel 2000
How can I disable the save and Save As options both icons and menu? When I make changes however to the file, I will want to save albeit happy to do so from the VBA menu. Thanks, Rob |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable Save and Save As
Hi Rob
You can use this in the Thisworkbook module Private Sub Workbook_BeforeClose(Cancel As Boolean) ThisWorkbook.Saved = True End Sub Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _ Cancel As Boolean) Cancel = True End Sub Remember that this will not work if the user disable macro's And then use a save macro like this Sub test() Application.EnableEvents = False ThisWorkbook.Save Application.EnableEvents = True End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Rob" wrote in message ... Excel 2000 How can I disable the save and Save As options both icons and menu? When I make changes however to the file, I will want to save albeit happy to do so from the VBA menu. Thanks, Rob |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable Save and Save As
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Cancel = True End Sub |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable Save and Save As
Thanks very much, works a treat. Rob
"PosseJohn" wrote in message ... Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Cancel = True End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how can i disable save i need save as only | New Users to Excel | |||
Disable Save/Save As - not working? | Excel Discussion (Misc queries) | |||
Disable Quick Save & Save As | Excel Discussion (Misc queries) | |||
Disable save | Setting up and Configuration of Excel | |||
Disable save, but not save as | Excel Programming |