Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Menus in global template with localized versions of Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CC - 18 Feb 2005 04:08 GMT
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 - 28 Feb 2005 16:58 GMT
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


> 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.
[quoted text clipped - 11 lines]
> thanks,
> --- chuck
CC - 16 Mar 2005 04:36 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.