A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

msoControl Button Error



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 30th 08, 07:48 PM posted to microsoft.public.outlook.program_addins
Al_21_11[_2_]
external usenet poster
 
Posts: 13
Default msoControl Button Error

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  
Old December 30th 08, 08:27 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default msoControl Button Error

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  
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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 08:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.