msoControl Button Error

  • Thread starter Thread starter Al_21_11
  • Start date Start date
A

Al_21_11

objButtonAdd = objBar.Controls.Add(msoControlButton)

i am getting error msoControlButton is not declared any ideas??? im using vs
2008 creting add-in for outlook 2003
 
Either fully qualify that reference as
Microsoft.Office.Core.msoControlButton or add an Imports statement something
like:

Imports Office = Microsoft.Office.Core

and then use Office.msoControlButton to qualify the reference.
 
With Office 2007 (Interop 12), yuou have to reference MsoControlType

objButton = CommandBar.Controls.Add(MsoControlType.msoControlButton)
 
Back
Top