How to trap ClosePreview, when user clicks the X inupper right corner.

H

Harold M Little

I open a Word template from with in Outlook.
The template that has a Public Sub named ClosePreview,
I use this macro to close the Word application by calling Quit
wddonotsavechanges,
this works fine when user clicks the built-in Close button.
If user clicks the X in upper right side my macro will not execute.
Can some one please advise how to trap the event associated with clicking
the "X",
my goal is to close and quit Word with out saving any changes.

Thank you
 

Ask a Question

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.

Ask a Question

Top