Group:  General ยป microsoft.public.officedev
Thread: The Tools/Customize command is greyed out

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

The Tools/Customize command is greyed out
"RomanP" <R_PR[ at ]tut.by> 23.02.2006 13:01:05
I have MS Word 2003 embedded into ActiveX and then into HTML page in
IE. Word has "Customize..." menu item greyed out and it can not be
activated by:

CommandBars("Menu
Bar").Controls("Tools").Controls("&Customize...").Enabled = True
(it does not set 'Enabled' at whole)

or
CommandBars.DisableCustomize = false;
(it is already 'false').

It seems, that ActiveX as container for Word makes this menu item
disabled. Excel as container for Word does not make "Customize"
disabled.

What is the trick here?

Regards,

Roman Prytkov

RE: The Tools/Customize command is greyed out
R_PR 28.02.2006 08:56:28
I tried following approaches with Word automation to make Tools/Customize
enabled (this is pseudo-code, illustrating approach):

1) CommandBars("Menu
Bar").Controls("Tools").Controls("&Customize...").Enabled = true
2) WordBasic.ToolsCustomize()
3) CommandBars("Menu Bar").Controls("Tools").Protection = msoBarNoProtection
4) CommandBars("Menu Bar").Controls("Tools").DisableCustomize = False

nothing of these works. I tried them steps by steps, controlling the access
and return results - they works till the final point - "Tools/Customize"
remains disabled.

The same behavior Word demonstrates when it is embedded into Excel or
TestContainer (tstcon32.exe).

What makes "Tools/Customize" disabled - is it common for OLE containers and
is it possible to activate it?

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net