Custom Action

  • Thread starter Thread starter Neo
  • Start date Start date
N

Neo

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
 
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"
 
Back
Top