A
Arseny
Hello! Please, help with VS2005-Office2003 automation.
I built very very simple project in VB VS2005 and compiled it to 'Release'
dll.
The VB project in VS2005 has COM class (and also option COM-visible checked).
After that, I add a reference to the built dll in Office 2003 (Excel or Word).
Now, I create new Sub in Office 2003 (in Excel or in Word) and in that Sub i
try to access my dll:
Sub testVb()
Dim var as vbClassLibrary.Test
Dim intvar as Integer
Set var = new vbClassLibrary.Test 'here the code fails
intvar = var.RunSimpleFunction
End Sub
The error I get while trying to create new object is "ActiveX can't create
object"
Please, help!
Thanks, in advance.
I built very very simple project in VB VS2005 and compiled it to 'Release'
dll.
The VB project in VS2005 has COM class (and also option COM-visible checked).
After that, I add a reference to the built dll in Office 2003 (Excel or Word).
Now, I create new Sub in Office 2003 (in Excel or in Word) and in that Sub i
try to access my dll:
Sub testVb()
Dim var as vbClassLibrary.Test
Dim intvar as Integer
Set var = new vbClassLibrary.Test 'here the code fails
intvar = var.RunSimpleFunction
End Sub
The error I get while trying to create new object is "ActiveX can't create
object"
Please, help!
Thanks, in advance.