How do I bypass the message to save when closing a file by macro?

G

Guest

When closing a file via macro, I continue to get the message do I want to
save this file. Can someone help me bypass that message.
 
D

Die_Another_Day

The best approach would be this:
Dim File1 as Workbook
Set File1 = Workbooks("YourWorkbook.xls")
File1.Close False
 

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