Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Nov 2002
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Foreign language problems (Word 2000 - 2003)

    We have a COM addin that manages our custom menu and command bar items we place into word and all works fine (English based). We have some customers that need to be able to use the add-in on systems setup for languages such as French, German, etc. and since the menu items are in those langauges some of our code that accesses standard Office menu items such as "File", Tools", do not work. This is because we are looking for those captions in english (File, Tools, Help, etc). Are there Microsoft office methods that wil can use to help us find those menu itmes and command bars when deployed to a system using a foreign language?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Foreign language problems (Word 2000 - 2003)

    You can use the English name for commandbars in VBA code, for example CommandBars("Formatting") works on my Dutch language system, although the toolbar is named "Opmaak" in Dutch.
    However, this doesn't work for commandbar controls. You can use the language-independent ID for those. You can find the ID for a specific item by typing something like the following in the Immediate window:

    ? CommandBars("Menu Bar").Controls("File").Controls("Open...").ID

    You'll see 23. The language-independent way to refer to the control is

    CommandBars.FindControl(ID:=23)

    You could write a macro to list all IDs.

  3. #3
    3 Star Lounger
    Join Date
    Nov 2002
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Foreign language problems (Word 2000 - 2003)

    Thanks Hans for you usual good answers!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •