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" <Al2111[ at ]discussions.microsoft.com> wrote in message news:4587A37C-F0E3-4696-A540-88458D26ABB5[ at ]microsoft.com...
[Quoted Text] > 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
|