View Single Post
  #9  
Old June 22nd 09, 01:58 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to create button in multiple lines?

How you would do that depends on whether it's an Explorer with
CommandBarButton's to click or ribbon controls in Inspectors.

For a CommandBarButton you find it in the CommandBar where it's shown and
then call its Execute() method.

For a ribbon control you need its idMso, which you can get from the ribbon
XML schema, then you get the Inspector.CommandBars object and call the
ExecuteMso() method, passing the ribbon control's idMso.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:97f9bba0a6714@uwe...
Hi, ken, could i be able to click a build-in button by code, for instance,
when user click on my button, then i want to click a build-in button by
code
in my button callback function, could i do it, if so, how?


Ads