Re: Outlook 2003 COM Addin
Here is a good Outlook 2003 COM Add-In example at MS.
http://msdn.microsoft.com/library/de...asp?frame=true
Re: Outlook 2003 COM Addin
Quote:
Originally Posted by RobDog888
Thanks Rob.
Can you answer a question for me? I see using the COM Object from within Outlook I can get full access to mail items, etc.
Is there any way to interface with this COM object from a Visual Basic program that is running outside of Outlook?
Re: Outlook 2003 COM Addin
Yes, you can access Add-In from VB6.
VB Code:
Option Explicit
'Add a reference to MS Outlook xx.0 Object Library
'Add a reference to MS Office xx.0 Object Library
Private Sub Form_Load()
Dim oCOM As Office.COMAddIn
Set oCOM = Outlook.COMAddIns.Item("MyAdd-In")
MsgBox oCOM.Description
Set oCOM = Nothing
End Sub
Re: Outlook 2003 COM Addin
Okay, one more question. Is it possible to call a function within my COM addin from an external program? If it is possible I can't figure out the syntax in my addin to create a function.
I tried making a Public Function but my external app just says that the ActiveX control can't create an instance.