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