michaelcoleman
Programmer
I'm trying to dynamically instantiate class modules based on file input
so in my project i have a class module called: myClass.cls
I would like to do:
dim O as object
Set O = CreateObject("myProject.myClass"
...but it errors out with "ActiveX can't create object
You may be asking me why I'm doing it that way....Well there is some common code that will be doing this part that is shared on multiple projects. The specific class modules will hopefully be able to created by a dynamic createobject function from above.
I've already tried to make it an ActiveX project thinking it will register the classes but that didn't seem to work.
Regards,
MJC
so in my project i have a class module called: myClass.cls
I would like to do:
dim O as object
Set O = CreateObject("myProject.myClass"
...but it errors out with "ActiveX can't create object
You may be asking me why I'm doing it that way....Well there is some common code that will be doing this part that is shared on multiple projects. The specific class modules will hopefully be able to created by a dynamic createobject function from above.
I've already tried to make it an ActiveX project thinking it will register the classes but that didn't seem to work.
Regards,
MJC