Discussion:
Menus in global template with localized versions of Word
(too old to reply)
CC
2005-02-18 04:08:28 UTC
Permalink
I have an English global template that has custom menus built and saved
with it. Some of my users have German and Swedish versions of Word.
When my template is added into their application, not all of my menus
show up. (My customizations consist of additional entries under "Tools"
and "Help"). Since I don't have a localized verson of Word it is
difficult to see exactly what is happening on their end. I know they
don't have "Tools" and "Help".

My question is general - is there anything special that I should be
doing to allow this merging of menus to take place? can I reasonably
expect this to work? Is there a better design than to have custom
menus statically saved in the template?

thanks,
--- chuck
Klaus Linke
2005-02-28 16:58:57 UTC
Permalink
Hi Chuck,

You can use the IDs instead of the names/captions. That should be safe, as they haven't changed from version to version or between language versions, as far as I know.

Instead of
CommandBars("Menu Bar").Controls("Tools")
you can use
' "Tools" menu on menu bar:
CommandBars.FindControl(ID:=30007)

Below are the IDs for the standard dropdown menus on the menu bar, a couple of non-standard ones, as well as some submenus.

Regards,
Klaus



MenuFile (File Menu) 30002
MenuEdit (Edit Menu) 30003
MenuView (View Menu) 30004
MenuInsert (Insert Menu) 30005
MenuFormat (Format Menu) 30006
MenuTools (Tools Menu) 30007
MenuTable (Table Menu) 30008
MenuWindow (Window Menu) 30009
MenuHelp (Help Menu) 30010

MenuFormatBackground (Format Background Submenu) 1706
MenuAutoTextList (Insert AutoText Submenu) 3260
MenuOrgChartInsert (Inserts an additional box to the organization chart) 6925
MenuMacro 30017
MenuNotesFlow (Notes Flow Menu) 30083
MenuSendTo (Send this document to...) 30095
MenuWork (Work Menu) 30100
MenuRevisions (Revisions Submenu) 30138
MenuAutoText 30181
MenuLanguage 30182
MenuTableInsert (Inserts rows, columns, or cells in a table) 30444
MenuTableDelete (Deletes rows, columns, or cells in a table) 30445
MenuTableSelect 30446
MenuTableConvert (Converts text to a table or a table to text) 30447
MenuFrameset (Format Frameset Submenu) 30452
MenuTableAutoFitLong 30460
MenuOrgChartLayout (Layout) 31158
MenuDiagramLayout (Diagram Layout) 31179
MenuDiagramConvertTo (Convert To) 31180
Post by CC
I have an English global template that has custom menus built and saved
with it. Some of my users have German and Swedish versions of Word.
When my template is added into their application, not all of my menus
show up. (My customizations consist of additional entries under "Tools"
and "Help"). Since I don't have a localized verson of Word it is
difficult to see exactly what is happening on their end. I know they
don't have "Tools" and "Help".
My question is general - is there anything special that I should be
doing to allow this merging of menus to take place? can I reasonably
expect this to work? Is there a better design than to have custom
menus statically saved in the template?
thanks,
--- chuck
CC
2005-03-16 03:36:35 UTC
Permalink
Klaus,
Thanks for the reply -- I've changed my code and it is now working
for both Geerman and Swedish editions. I have no idea where you found
this list, but I'll certainly save it off for future reference.
-- chuck

Loading...