MacroView said:
Use the AutoExit macro as it runs when Word quits. If its not just for
persoal use then don't store on Normal.dot but on a global template in
your Startup folder.
Be aware that strictly speaking AutoExit is not run when Word closes, it is
run when that template is unloaded.
If the AutoExit is in normal.dot, normal.dot is only ever unloaded
immediately prior to Word closing so this is a distinction is without much
of a practical difference. But for add-ins, the AutoExit macro will run also
if you go to Tools, Templates and add-ins, and uncheck the template in the
addins list.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition
www.classicvb.org