To save time I have used Tools, Reference to point to an earlier project "MM20211115.doc".
While I am running my project, "MM20211115.doc" is opened, so at the end of the day I have two documents open on the laptop.
I use the keyboard Alt-File, eXit to shutdown MSWord, and receive the pop-up message shown below. Just another excuse to dash off a bit more VBA in the referenced document MM20211115.doc"", right?
Code: Select all
Private Sub Document_Close()
If UW.blnDocIsOpen("ESE_05.doc") Then
Documents("ESE_05.doc").Close
Else
End If
End Sub
But does anyone have a neater, generalized way of coping with this situation?
Thanks
Chris