outlook - referencing menu items (without using strings)

H

hb

IS THERE AN ANOTHER WAY TO MAKE REFERENCE TO THESE
SHORTCUTS? WITHOUT USING STRINGS (which gets translated
depending on the internationalization?)


The problem - in details:
Actully i'm working on an addin in o2k. Hardly but i've
managed to figure out the most thing i need. Now i have
problems with accessing the menu...

I want to get an event when user select save-as in the
inspector! The next code works fine until i'm using an
English version of outlook2k:
Set o = Application.ActiveInspector.CommandBars("Menu
Bar").Controls("File").Controls("Save &As...")

But this code is not working in the czeh version... The
reason is that in czeh the "Save &as" is replaceed with
the string "Ulozit ako".

Thanx in forward...
 
K

Ken Slovak - [MVP - Outlook]

Get the Id's of the menu items you are interested, you can write a
simple loop that goes through them all and shows them using
Debug.Print or save them to a text file. Then use the Id's to get and
instantiate your menu item object references.

The alternative would be to use a resource file with strings for each
language you intend to support and then after checking the local
language settings loading the appropriate language specific strings to
reference the menu items.
 

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

Top