OnAction is the wrong property if you want to run an .exe. Use OnAction to run a VBA macro or to associate the button with a COM add-in.
To run an .exe, set the CommandBarButton.HyperlinkType property to msoCommandBarButtonHyperlinkOpen [= 1] and put the path to the .exe file in the TooltipText property.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"mml" wrote in message ...
The ".OnAction" of my button must call an executable file (.exe) and I dont
find the right syntax for that.