D
DanP
I have created a simple assembly using VB.NET Express (or VB.NET 2005) with
COM Interop and want to instantiate the assembly from VBA using code that
looks like this:
Dim MyPanelObj As MyDebugPanel.MyToolForm
Sub StartMyTool()
If MyPanelObj Is Nothing Then Set MyPanelObj = New MyDebugPanel.MyToolForm
MyPanelObj.startup
End Sub
Using Excel 2003, this works fine. Using Excel 2002, it fails on the line
that creates the object (the New) with the error "Automation Error". Is
there any way that this can be made to work from Excel 2002? Does anyone
know why this *doesn't* work? I have been unable to discover what is wrong.
Any help or advice much appreciated...
COM Interop and want to instantiate the assembly from VBA using code that
looks like this:
Dim MyPanelObj As MyDebugPanel.MyToolForm
Sub StartMyTool()
If MyPanelObj Is Nothing Then Set MyPanelObj = New MyDebugPanel.MyToolForm
MyPanelObj.startup
End Sub
Using Excel 2003, this works fine. Using Excel 2002, it fails on the line
that creates the object (the New) with the error "Automation Error". Is
there any way that this can be made to work from Excel 2002? Does anyone
know why this *doesn't* work? I have been unable to discover what is wrong.
Any help or advice much appreciated...