Joseph wrote in message ...
Hi,
I noticed that you have used the code: ActiveWorkbook.close.
Try using this instead:
Application.quit
This will totally close the workbook without prompting for a save, and
withoput saving any open workbooks. You might want to put in a warning
about that in your MsgBox.
Cheers
---
Message posted from http://www.ExcelForum.com/
I guess what I am trying to ask is how can I get a message box to
appear if someone clicks the cancel button in the save as dialog box?
With the code above if I click on cancel the program quits, but I
would like a dialog box to appear asking if they would like to close
the program.
Thanks