"Save file before closing"

M

mkilbour

Using Excel 2007 on Windows XP: Monthly I select hundreds of Excel files from
Windows Explorer, right click and select Print. It would open an Excel file,
print it, close it and repeat for the next file. I could go home for the
evening, and the hard copies would be on my printer when I came in the next
morning. I am now getting a prompt asking if I want to save the file before
closing it. This means I have to be present and respond for every file it
opens. How can I disable this prompt?
 
L

Luke M

Sounds like at least one of the files has a volatile function such as:
=NOW()

Possible workaround:
Open XL, change calculation mode to manual (Tools-Options-Calculation), then
open all the files and print. This would prevent Volatlite functions from
recalculating.

On the other hand, if you wrote a macro to open & print all your files, the
command code needed at the beginning would be:
Application.DisplayAlerts = False
 
G

Gary Brown

When you close each workbook, use something like...

application.ActiveWorkbook.Close savechanges:=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