Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

[Word 2007] disable X close button and modify Options Dialo

 
Post new topic   Reply to topic    Computer Forum Forum Index -> word vba customization
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed May 09, 2007 9:12 am    Post subject: [Word 2007] disable X close button and modify Options Dialo Reply with quote

Hi,

I need to know if there is a way to disable the X close button
because
the add-in I am developing for Word 2007 is having errors if we quit
the word application using the X close button.
I've been able to able to repurpose the FileExit in the Office Menu
by
writing a vba macro which is


"Sub FileExit(control As IRibbonControl, ByRef cancelDefault)"


and in the XML file: <command
idMso="FileExit"
onAction="FileExit"/>


I tried to repurpose the X close button by adding this in the XMl
file:
<command
idMso="WindowClose"
onAction="FileExit"/>


but it seems to be out of reach this way.


I thought about using only VBA to reach the X close button but didnt
have find yet.


More over, i'd like to disable specific options in the word Options
dialog but it's not possible using custom Ui XML so I thought about
using VBA also with Application.options as it was possible in word
2003 but need to know the new properties and object model.


I have been searching on microsoft websites, newsgroups, P.Schmidt
(Hi
^^) forums and what else... well a lot of others websites.


If someone could answer this it would be great


kind regards, ^____^

Arnaud H.
Back to top
Google
Sponsor





PostPosted: Wed May 09, 2007 9:12 am    Post subject: Advertisement

Back to top
Guest






PostPosted: Wed May 09, 2007 10:13 am    Post subject: Re: disable X close button and modify Options Dialog Reply with quote

I forgot to say I'm working on Word 2007.

Arnaud H.
Back to top
Patrick Schmid [MVP]
Guest





PostPosted: Wed May 09, 2007 7:58 pm    Post subject: Re: [Word 2007] disable X close button and modify Options D Reply with quote

Quote:
I need to know if there is a way to disable the X close button
because
the add-in I am developing for Word 2007 is having errors if we quit
the word application using the X close button.
I'd say that you should investigate those errors and fix them instead of

trying to disable X


Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
Back to top
Guest






PostPosted: Mon May 14, 2007 9:22 am    Post subject: Re: disable X close button and modify Options Dialog Reply with quote

ok, i'll try to fix it

thanks for you answer

Arnaud H.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> word vba customization All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum