Re: Disable X




"Jean-Guy Marcil" <NoSpam@LeaveMeAlone> wrote in message news:u2Wf77nMGHA.3856@xxxxxxxxxxxxxxxxxxxxxxx


I meant through VBA...
Do you mean that there is a VBA way of doing this?
I thought it was only possible through somewhat complicated API
calls.

Depends what you think of as complicated. Most of the code in this
article can be used

How to disable the X close button on a UserForm
http://word.mvps.org/FAQs/Userforms/DisableClose.htm


Duh!
Must be a slow day!
Right you are, so the following, by using API stuff from VBA will dim the X on the Word application Window:


Yup, that looks about right.


--
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

.