M
Montana DOJ Help Desk
Word 2000
I have the following routine:
Sub FileClose()
CommandBars("Locates").Visible = False
CheckRequiredBookmarks
ActiveDocument.Close (wdSaveChanges)
End Sub
This will run when the user selects File > Close, or clicks the "x" to close
the document, but not when ALT+F4 is used or when the user closes Word. Is
there a way to make this routine run anytime the user takes an action that
causes the document to be closed?
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."
I have the following routine:
Sub FileClose()
CommandBars("Locates").Visible = False
CheckRequiredBookmarks
ActiveDocument.Close (wdSaveChanges)
End Sub
This will run when the user selects File > Close, or clicks the "x" to close
the document, but not when ALT+F4 is used or when the user closes Word. Is
there a way to make this routine run anytime the user takes an action that
causes the document to be closed?
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."