Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
disable closing of workbook
Hi
I want a code that could save the workbook if the user closes it! -- Varun Nair |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
disable closing of workbook
Private Sub Workbook_BeforeClose(Cancel As Boolean)
thisworkbook.Save End Sub this would go in the Thisworkbook module of the workbook. Chip Pearson's page on events if you are not familiar: http://www.cpearson.com/excel/events.htm -- Regards, Tom Ogilvy "Varun Nair" wrote: Hi I want a code that could save the workbook if the user closes it! -- Varun Nair |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Closing a workbook | Excel Discussion (Misc queries) | |||
closing a workbook | Excel Programming | |||
Closing Hidden Workbook when Active Workbook is Closed | Excel Programming | |||
how to disable save prompt on closing excel file in automated mode | Excel Discussion (Misc queries) | |||
closing excel after closing a workbook | Excel Programming |