Connect a COM AddIn from VBA Code

  • Thread starter Maurizio BELLANTONE
  • Start date
M

Maurizio BELLANTONE

Hi,
I need to connect a registered COM Add In from workbook Open event.
But every code I write, like these below, raise error 1004.
What is wrong ?
TIA,
Maurizio Bellantone

-----------------------------------------------------
Private Sub Workbook_Open()
Dim x As Integer

Application.COMAddIns("MyAddIn.Connect").Connect = True

End Sub
-----------------------------------------------------
Private Sub Workbook_Open()
Dim x As Integer

x = Excel.Application.COMAddIns.Count

End Sub
-----------------------------------------------------
 
M

Maurizio BELLANTONE

Resolved.
It didn't work on development pc, where dll addin is not registered. On test
pc work without problems.
Bye.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top