skipping pop up box for saving changes when closing a file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In my macro I open and close several files. One of them I dont want to save
the changes I have done to the file. I thought the following was a way to
elimate the "Do you want to save your changes" pop up box that shows up when
I close the file.....but for some reason excel does not agree with me. Thanks
for the help

Application.DisplayAlerts = False
Workbooks(Top25Report).Close Savechanges:=False
Application.DisplayAlerts = True
 

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

Back
Top