![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Voting button cause form error in email template | Marxyana | Outlook - Using Forms | 3 | October 8th 08 09:19 PM |
Outlook Contact Task Button error | Terri | Outlook - Using Contacts | 0 | March 15th 07 02:24 PM |
When I press the To button the contact list shows an error | Yau Shern | Outlook - Using Contacts | 1 | November 20th 06 11:30 AM |
Setting A Command Bar Button Picture - Catastrophic Failure Error | pswfps | Outlook and VBA | 1 | July 14th 06 02:45 PM |
Setting A Command Bar Button Picture - Catastrophic Failure Error | Whatever | Add-ins for Outlook | 1 | July 14th 06 02:42 PM |