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)
 

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

Back
Top