The Tools/Customize command is greyed out

  • Thread starter Thread starter RomanP
  • Start date Start date
R

RomanP

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top