I've updated the AutoExit macro in hopes of making it a bit more sensitive. Here's what I've got:
Sub AutoExit()
Dim doc As Document
Dim IsMM As Boolean
IsMM = False
For Each doc In Documents
If doc.Name = "MyMacros.dotm" Then IsMM = True
doc.Close wdSaveChanges
If IsMM Then MsgBox "MyMacros closed and saved."
Next
End Sub
If I haven't opened MyMacros, nothing happens when I close Word.
If I have opened MyMacros, and have left it open, Word closes and I don't see the msg box. Afterward, ~$ files show up for both Normal and MyMacros. When I reopen, I can tell that MyMacros is still open from the last session, because when I run my CloseMyMacros macro, I get a msg box at the end confirming that MM has been closed and saved. No further trouble thereafter.
So the problem remains: the AutoExit macro isn't working, for reasons unknown (by me).