ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Connect a COM AddIn from VBA Code (https://www.excelbanter.com/excel-programming/364620-connect-com-addin-vba-code.html)

Maurizio BELLANTONE

Connect a COM AddIn from VBA Code
 
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
-----------------------------------------------------



Maurizio BELLANTONE

Connect a COM AddIn from VBA Code
 
Resolved.
It didn't work on development pc, where dll addin is not registered. On test
pc work without problems.
Bye.

"Maurizio BELLANTONE" <bellantoneCHIOCCIOLAlibero.it ha scritto nel
messaggio ...
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
-----------------------------------------------------






All times are GMT +1. The time now is 04:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com