Thread: Outlook Add-in
View Single Post
  #2  
Old October 4th 07, 05:06 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook Add-in

What Outlook version? Where is the button, on an Inspector or an Explorer?

In general you can get an Explorer button for the active Explorer using code
to find the button such as:

Dim button As Office.CommandBarButton

' ol is an Outlook.Application object already instantiated, this code
assumes button added
' to Standard toolbar

Set button = ol.ActiveExplorer.CommandBars("Standard").FindCont rol(Tag
:= "MyTag")
If Not (button Is Nothing) Then
button.Execute
End If

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


"Marius" wrote in message
...
Hello,

I have made an Outlook Add-In with Visual Basic 6.0.
The Add-In makes an Toolbar and all workes fine.

Now, I want to click an Button on these Toolbar from another Programm. How
can I do this?

Thanks for an answer.

Sincerely,
Marius


Ads