Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to prevent saving
Does any one know a macro for preventing the user to save
-- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to prevent saving
A really determined user? No, can't be done. A casual user? In the
Workbook's BeforeSave event, put in the line Cancel = True and that will cancel the save. HTH, Bernie MS Excel MVP "stols121 " wrote in message ... Does any one know a macro for preventing the user to save? --- Message posted from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to prevent saving
Hi
one way: Put the following code in your workbook module: Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) MsgBox "Saving not allowed" Cancel = True End Sub -- Regards Frank Kabel Frankfurt, Germany Does any one know a macro for preventing the user to save? --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Prevent saving and allow only through Macro | Excel Discussion (Misc queries) | |||
Prevent Saving | Excel Discussion (Misc queries) | |||
How do I prevent saving an excel file if cells are blank? | Excel Worksheet Functions | |||
Prevent user from saving workbook | Excel Discussion (Misc queries) | |||
prevent saving a worksheet | Excel Discussion (Misc queries) |