Deny User Save Option
This code should work for it
ThisWorkbook.Saved = True
I have it in a macro being run on the before close event
"Phil H" wrote:
I have a workbook with all worksheets protected, located on a network. When
the user closes, Excel puts up a message, €śDo you want to save€¦€ť giving the
user the option to save. I do not want the user to have this option. How do
I do this? Below is existing Auto_Close()
Sub Auto_Close()
Application.ScreenUpdating = False
Sheets("REP003").Select
Application.Goto Reference:=Range("A1"), Scroll:=True
Application.Goto Reference:=Range("A100"), Scroll:=False
ActiveWindow.Zoom = 85
Application.DisplayFullScreen = False
ActiveWindow.DisplayWorkbookTabs = True
ActiveWindow.DisplayHeadings = True
ActiveWindow.DisplayHorizontalScrollBar = True
Application.ScreenUpdating = True
End Sub
|