CreateObject -
01-02-2008
, 11:48 PM
I am just stumped. I use the following type of code from Office apps:
Dim w as object
Set w = CreateObject("iGen.iGenStart")
w.MyProp = "SomeValue"
w.MyMethod
Set w = Nothing
All of a sudden, I can run this code only from MS Access, but not from Word
or Excel. In my vb.net dll file, I have checked "Register for COM interop".
My class looks like this:
<ComClass()> Public Class iGenStart
Public Methods and Properties
End Class
I compile the application, and I do get the type library file. I do see the
type library file under Tools...References in the Office applications. If I
do early binding it works fine to connect to iGen.iGenStart - why would this
not work in some Office applications? |