I moved the code to "This Workbook," and it did the same thing as before, but I think I see the issue. If I click on the "X" to close and save the document, the message box pops up, but if I save by either going to File > Save or pressing Ctrl-S the document saves without a message box. Is it possible to get the message box no matter what method is used for saving and still give the user the choice to return to the document if they don't want to continue saving?