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 VBA / March 2004

Tip: Looking for answers? Try searching our database.

Custom Action

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neo - 18 Mar 2004 17:09 GMT
Hi,

Can we customize the actions on the menu bar in the
outlook on a contact form like New Letter to Contact or
the New Message to contact through VBA or the COM Addin.

Thanks,
Neo
Eric Legault [MVP - Outlook] - 31 Mar 2004 18:45 GMT
Yes indeed you can:

   Dim objCBs As Office.CommandBars
   Dim objCBB As Office.CommandBarButton
   Dim objCBP As Office.CommandBarPopup

   Set objCBs = Application.ActiveInspector.CommandBars
   Set objCBP = objCBs.FindControl(, 30130) 'This gets the Actions menu
   Set objCBB = objCBP.Controls.Add(, , , , True) 'Adds a button to the
Actions menu controls collection
   objCBB.Caption = "test"

Signature

Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/

> Hi,
>
[quoted text clipped - 4 lines]
> Thanks,
> Neo
 
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.