See the article "Intercept the Close button (X) in the title bar of a user
form" at:
http://www.word.mvps.org/FAQs/Userforms/InterceptCloseButton.htm

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> If the user clicks the 'x' button on the userform the rest of my code
> won't
[quoted text clipped - 3 lines]
> thanks
> Southern@Heart