Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Phil,
Try: '============= Private Sub Workbook_BeforeClose(Cancel As Boolean) Me.Saved = True End Sub '<<============= This is workbook event code and should be pasted into the workbook's ThisWorkbook module *not* a standard module or a sheet module: Right-click the Excel icon on the worksheet (or the icon to the left of the File menu if your workbook is maximised) Select 'View Code' from the menu and paste the code. --- Regards, Norman "Phil H" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save as .xla option is not coming when I try to save | Excel Discussion (Misc queries) | |||
How do I deny opening and viewing any file to any user and lock i. | Excel Discussion (Misc queries) | |||
Deny file access if user declines macros? | Excel Discussion (Misc queries) | |||
User Option to save to chosen destination | Excel Programming | |||
Checking to see if user selected an Option | Excel Programming |