Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, stick this in the this workbook module, no matter how you try t close the workbook it will save it first (as long as you hav previously saved it i.e not the generic Book1.xls that is generate when you first open a new workbook) and then allow it to close. Private Sub Workbook_BeforeClose(Cancel As Boolean) ActiveWorkbook.Save End Sub HTH Simo -- Simon Lloy ----------------------------------------------------------------------- Simon Lloyd's Profile: http://www.excelforum.com/member.php...nfo&userid=670 View this thread: http://www.excelforum.com/showthread.php?threadid=27571 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA project does not close when workbook is closed | Excel Programming | |||
Forcing User inputs | Excel Discussion (Misc queries) | |||
why do all excel worksheets/workbooks close when I close one? | Excel Discussion (Misc queries) | |||
Forcing Input from a user | Excel Worksheet Functions | |||
why do all files get closed when i only close one in excel? | Excel Discussion (Misc queries) |