How can I do that ?
Mathieu.
To run an Outlook command include the following line in
the button's Click event:
Item.GetInspector.CommandBars.ActiveMenuBar.Controls(idOfYourCommand).Execute
To run an Application include the following line in the
button's Click event:
Set myApp = Application.CreateObject("objectName")
To find out which object name you have to use for the
application, use the Registry editor and look in
HKEY_CLASSES_ROOT.
To start MS Word you have to use "Word.Application" and
then code:
myApp.Activate
To start MS Excel you have to use "Excel.Application"
and then code:
myApp.Visible = True
Daniel