Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50079

Call a Office.COMAddIn from VBA

$
0
0
Hi There,

I have an addin that was created by an external vendor and I want to encorporate it into my user form when users click a button.

I can connect to the office.COMAddIn but don't know how to tell it to run.

Here is my current code

Private Sub ForecastButton()


Dim addIn As Office.COMAddIn
Set addIn = Application.COMAddIns("Forecast")
Set automationObject = addIn.Object

If addIn.Connect = True Then
MsgBox ("This appears, so I know the Addin is connected")
I want to add in code here to tell the COMAddIn to RUN!

End If
End Sub


Cheers,

Paul

Viewing all articles
Browse latest Browse all 50079

Trending Articles