At its most basic, the macros would look something like this:
Sub FileSave
Call MyExitMacro
ActiveDocument.Save
End Sub
Sub FileSaveAs
Call MyExitMacro
Dialogs(wdDialogFileSaveAs).Show
End Sub
These would go into any VBA module - most likely the one that already
contains your exit macro - and would effectively intercept the File | Save
and File | Save As commands. You would, of course, replace "MyExitMacro" with
the name of the exit macro you have already developed.
Note, too, that the "Call" statement is not absolutely necessary; I only
included it for clarity.
In addition, you may also have to do a bit of fiddling around with your exit
macro to make sure it can be invoked using this method if it's not in the
same module as the sample code above.
Using the Document_Close event as the trigger would be a bit more
complicated and requires an understanding of VBA that may be beyond the
current scope of your learning. I would recommend that you do a bit of study
before attempting this approach.
In fact, it probably wouldn't do any harm to build your knowledge generally
if you plan on doing more of this type of work. Forum members are all unpaid
volunteers and, while they are happy to help, you may find they get a bit...
testy... if you don't show a willingness to help yourself in the first
instance. Otherwise, I would suggest engaging an outside resource to assist
you.
--
Cheers!
Gordon
Uninvited email contact will be marked as SPAM and ignored. Please post all
follow-ups to the newsgroup.