View Single Post
  #3  
Old June 10th 09, 07:02 PM posted to microsoft.public.outlook.program_addins
Jeremy A. Marut
external usenet poster
 
Posts: 1
Default msoControl Button Error

With Office 2007 (Interop 12), yuou have to reference MsoControlType

objButton = CommandBar.Controls.Add(MsoControlType.msoControlB utton)

--
Jeremy A. Marut


"Ken Slovak - [MVP - Outlook]" wrote:

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Al_21_11" wrote in message
...
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



Ads