You can either declare the Word application object WithEvents in a class module and then access the Quit event, or, inside your global Word VBA project you could use the inbuilt AutoExit procedure.
You would then place you code to kill the INI file in either of these.
|