Macro: Exit active workbook without save?

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

Guest

How to create a maco button that exit the active workbook without saving?
Thanks
 
Hi
try
sub foo()
with activeworkbook
.saved=true
.close
end with
end sub
 
Thanks to both of you for the quick responses. I did get your responses but
have been unable to get back on this site until tonight to thank you.....my
apologies for the lateness of this thank you but know your help is greatly
appreciated.

Don
 

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