There is no specific event for the application closing. How does the
user close the application? Do they click on a button on a form? If
so, you could attach your macro to the On Click event property of this
button, prior to the Quit action. Or, if this is a form which is always
open whenever the application is open, you could use the On Unload event
property of the form.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.