ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Suppress popup "Do you really want to save..." after open and immediate close of excel sheets ? (https://www.excelbanter.com/excel-programming/380363-suppress-popup-do-you-really-want-save-after-open-immediate-close-excel-sheets.html)

Markus Obermayer

Suppress popup "Do you really want to save..." after open and immediate close of excel sheets ?
 
It occurs very often that I open an Excel sheet and do not change anything in that sheet.
Then (after viewing some content) I want close it again. But a message dialog pops up asking me if
I want to save the changes.

I guess that this is the result of embedded macros.

However this is not intuitive and not user friendly.

How do I avoid these kind of popups when no changes took place ?

Markus


Bob Phillips

Suppress popup "Do you really want to save..." after open and immediate close of excel sheets ?
 
This is probably caused =by having volatile worksheet functions, such as
=TODAY().

You could get around it, but it could stop it being saved when it should, so
I would just live with it.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Markus Obermayer" wrote in message
...
It occurs very often that I open an Excel sheet and do not change anything

in that sheet.
Then (after viewing some content) I want close it again. But a message

dialog pops up asking me if
I want to save the changes.

I guess that this is the result of embedded macros.

However this is not intuitive and not user friendly.

How do I avoid these kind of popups when no changes took place ?

Markus




[email protected]

Suppress popup "Do you really want to save..." after open and imme
 
In my Workbook_BeforeClose method, I have added a line "Saved = True".
That suppresses the message, which can be good in your case, but bad in
the case where a user is expecting that message.


Tom Ogilvy wrote:
If the workbook is actually changed, then not sure you can avoid it.

Perhaps this is only the problem:
http://support.microsoft.com/kb/289111/en-us
In Excel 2003 and in Excel 2002, you are prompted to save the changes when
no changes were made

--
Regards,
Tom Ogilvy


"Markus Obermayer" wrote:

It occurs very often that I open an Excel sheet and do not change anything in that sheet.
Then (after viewing some content) I want close it again. But a message dialog pops up asking me if
I want to save the changes.

I guess that this is the result of embedded macros.

However this is not intuitive and not user friendly.

How do I avoid these kind of popups when no changes took place ?

Markus





All times are GMT +1. The time now is 04:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com