Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / November 2006

Tip: Looking for answers? Try searching our database.

an action in a commandButton

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
armando - 03 Nov 2006 22:02 GMT
how i can call a custon action with a commandButton?
Sue Mosher [MVP-Outlook] - 04 Nov 2006 00:13 GMT
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........
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.