an action in a commandButton

S

Sue Mosher [MVP-Outlook]

The Action.Execute method should be documented in Help:

Set myAction = Item.Actions("My Action")
myAction.Execute

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

armando

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!
 
S

Sue Mosher [MVP-Outlook]

I don't see any code to instantiate an insp object.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

armando

i have put at the first line
Dim insp

and in the _open function
Set insp........
 
S

Sue Mosher [MVP-Outlook]

Does a MsgBox statement in the same position work? Outlook version?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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