Running a macro automatically when Word starts or quits
Article contributed by Dave Rado
To run a macro when Word starts
In a
Global template, if you write a macro called AutoExec, it will automatically run when you launch Word.
To run a macro when Word quits
In a
Global
template, if you write a macro called AutoExit, it will automatically run when you quit Word.
See also the article: Writing application event procedures.