I am having a similar problem to the one documented in this thread. I have an inherited VBA .mxd that runs in both ArcGIS 9.3.1 and 10.0. The .mxd uses a form that includes an Exit button. In 9.3.1, selecting the Exit button shuts down ArcMap immediately (which is what we want). In 10.0, the Exit button leads to the dialog box "Save changes to xxx.mxd?" This may be minor, but I have a number of staff users who have some trouble spelling GIS, and saving changes would lead to unwanted text boxes included in subsequent iterations of the product layout (i.e. without me having to go in and clean them up). Everything else about this .mxd works the same in 9.3.1 and in 10.0. Wondering what else I need to do in the 10.0 version of the .mxd to get it to shutdown immediately without the dialog box. Here is the code for the Exit button in the form:
Private Sub cmdExit_Click()
' Code to shutdown application
Dim pApp As IApplication
Set pApp = Application
' Do not save changes
pApp.Shutdown
SendKeys "n"
End Sub
Thanks in advance.