Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Workbook Before_Close question
If user clicks the little 'x' in top right corner, then
I believe I can trap this with the Before_Close Event. prior to the book closing. Providing code has not saved the activeworbook prior to this point, how do I Close without Saving changes, please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.710 / Virus Database: 466 - Release Date: 23/06/2004 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Workbook Before_Close question
Try this Stuart
how do I Close without Saving changes, please? Private Sub Workbook_BeforeClose(Cancel As Boolean) ThisWorkbook.Saved = True End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Stuart" wrote in message ... If user clicks the little 'x' in top right corner, then I believe I can trap this with the Before_Close Event. prior to the book closing. Providing code has not saved the activeworbook prior to this point, how do I Close without Saving changes, please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.710 / Virus Database: 466 - Release Date: 23/06/2004 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Workbook Before_Close question
Got it.
Many thanks. Regards "Ron de Bruin" wrote in message ... Try this Stuart how do I Close without Saving changes, please? Private Sub Workbook_BeforeClose(Cancel As Boolean) ThisWorkbook.Saved = True End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Stuart" wrote in message ... If user clicks the little 'x' in top right corner, then I believe I can trap this with the Before_Close Event. prior to the book closing. Providing code has not saved the activeworbook prior to this point, how do I Close without Saving changes, please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.710 / Virus Database: 466 - Release Date: 23/06/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.710 / Virus Database: 466 - Release Date: 23/06/2004 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Wierd one concerning Before_Close and OnTime | Excel Discussion (Misc queries) | |||
Workbook Name question | Excel Programming | |||
Before_Close problem | Excel Programming | |||
Question for Experts: Opening workbook with workbook references | Excel Programming | |||
Auto_Open & Before_Close | Excel Programming |