The Action.Execute method should be documented in Help:
Set myAction = Item.Actions("My Action")
myAction.Execute

Signature
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
> how i can call a custon action with a commandButton?
armando - 04 Nov 2006 10:53 GMT
i have put these code in a Commandbutton,
when the action is call
myAction.Execute
the program go in
Function Item_CustomAction(ByVal Action, ByVal NewItem)
Select Case Action.Name
Case "Passa Lettera A.."
insp.Close 0
and so close the windows but the action isn't done!
Sue Mosher [MVP-Outlook] - 04 Nov 2006 15:10 GMT
I don't see any code to instantiate an insp object.

Signature
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
>
> i have put these code in a Commandbutton,
[quoted text clipped - 9 lines]
>
> and so close the windows but the action isn't done!
armando - 04 Nov 2006 16:25 GMT
i have put at the first line
Dim insp
and in the _open function
Set insp........
Sue Mosher [MVP-Outlook] - 25 Nov 2006 03:19 GMT
Does a MsgBox statement in the same position work? Outlook version?

Signature
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
>i have put at the first line
> Dim insp
>
> and in the _open function
> Set insp........