Controls parameters

D

Dennis Brown

Hi All,
If I use CommandBars("Formatting").Controls("Italic").State
Is there a means of using the numerical values of "Bold", "Italic", and "Underlined" within Controls("Italic") function? If I use the string, then the I'll need to put it as a constant, and that constant will need to be localized by users in other languages. If I use the ID#, then that step would not be necessary. I know how to retrieve the id, but if I can hard-code it in, that would be one less object call, but I can't determine from the Outlook object browser if the Controls function has a means of accepting integers.
 
M

Michael Bauer

Hi Dennis,

the names arn´t localized, but the captions only. If you´d like to use
the IDs instead so where is the problem? You know how to get the IDs -
so do it, write them then into your code - et voilá!

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook


Hi All,
If I use CommandBars("Formatting").Controls("Italic").State
Is there a means of using the numerical values of "Bold", "Italic", and
"Underlined" within Controls("Italic") function? If I use the string,
then the I'll need to put it as a constant, and that constant will need
to be localized by users in other languages. If I use the ID#, then
that step would not be necessary. I know how to retrieve the id, but if
I can hard-code it in, that would be one less object call, but I can't
determine from the Outlook object browser if the Controls function has a
means of accepting integers.
 

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