Suppress popup "Do you really want to save..." after open and immediate close of excel sheets ?

  • Thread starter Markus Obermayer
  • Start date
M

Markus Obermayer

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
 
J

jeff.j.griffith

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top