| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed May 09, 2007 9:12 am Post subject: [Word 2007] disable X close button and modify Options Dialo |
|
|
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

|
Posted: Wed May 09, 2007 9:12 am Post subject: Advertisement |
|
|
|
|
| Back to top |
|
 |
Guest
|
Posted: Wed May 09, 2007 10:13 am Post subject: Re: disable X close button and modify Options Dialog |
|
|
I forgot to say I'm working on Word 2007.
Arnaud H. |
|
| Back to top |
|
 |
Patrick Schmid [MVP] Guest
|
|
| Back to top |
|
 |
Guest
|
Posted: Mon May 14, 2007 9:22 am Post subject: Re: disable X close button and modify Options Dialog |
|
|
ok, i'll try to fix it
thanks for you answer
Arnaud H. |
|
| Back to top |
|
 |
|