Hi Govert,
Yes, it is the extended methods that keeps the code in VSTO. We are
using VSTO to host visual controls on a worksheet - now if you could
do that with DNA, I'd be interested.
I have since found a way to call into VSTO, and you're right again,
with the same code used in VBA but with late bound
VB.NET. I was
hoping there was a simpler way. Code below...
Dim addIn As ICOMAddin
Dim addInFunctions As Object = Nothing
Try
addIn =
Insight.Configuration.ExcelProviders.Application.COMAddins.Item("MyAddin")
If Not addIn Is Nothing Then
addIn.Connect = True
If addIn.Connect Then
addInFunctions = addIn.Object
End If
End If
If Not addInFunctions Is Nothing Then
addInFunctions.DoSomething()
End If
Catch ex As COMException
Throw New ApplicationException("Unable to connect to
Visualisation COM Addin.", ex.InnerException)
Catch ex As Exception
Throw New ApplicationException("Unable to activate
Visualisation COM Addin.", ex.InnerException)
End Try
Thanks again,
Simon.
> > Simon.- Hide quoted text -
>
> - Show quoted text -