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