How to bypass Excel error message

G

Guest

I have a macro that closes all files but everytime that I touch a file, the
Save file message from Excel appears. Is there a way I can bypass this error
and force Excel to close the file without saving it?

Thanks
 
D

Dave Peterson

You're closing the workbooks in code?

someworkbookvariable.close savechanges:=false 'or true???
 
G

Guest

Dave,
Thanks for the code. It worked exactly without Excel prompting the save
textbox.
 

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