B
Bob Bridges
I discovered VB/VBA/VBS only a couple years ago, and I'm trying to do a favor
for a friend who wants to write a VB tool that pulls some basic information
from a Project 2003 document. I'm tutoring him in the OO part of VB (having
just twigged to it myself), but in order to walk him through it, using
Project as our example, I need to experiment with it a little myself first.
I'm using VB 2008 Express for this purpose.
I don't have MS Project, any version, but my friend sent me an .mpp to play
with and I've found some documentation on the Project 2003 object; so far, so
good. But I'm stopped at the outset: When I try to create an instance of
that object
apProj = CreateObject("MSProject.Project")
....I'm told "Cannot create ActiveX component". I surmise the problem is
that since I don't have Project, its COM objects aren't defined in my
registry. Now, I don't have any need for Project myself and don't intend to
buy it. So my questions are
a) Am I barking up the wrong tree, or am I right that the problem is not
having a Project COM object defined in my system?
b) If I'm right about that, is there a way to get that object defined in my
system so I can experiment a bit so as to help my friend along? The
alternative seems to be to talk to him in general about working with objects
and letting him experiment on his own, which may work. But a little sample
code from me would surely help him along.
for a friend who wants to write a VB tool that pulls some basic information
from a Project 2003 document. I'm tutoring him in the OO part of VB (having
just twigged to it myself), but in order to walk him through it, using
Project as our example, I need to experiment with it a little myself first.
I'm using VB 2008 Express for this purpose.
I don't have MS Project, any version, but my friend sent me an .mpp to play
with and I've found some documentation on the Project 2003 object; so far, so
good. But I'm stopped at the outset: When I try to create an instance of
that object
apProj = CreateObject("MSProject.Project")
....I'm told "Cannot create ActiveX component". I surmise the problem is
that since I don't have Project, its COM objects aren't defined in my
registry. Now, I don't have any need for Project myself and don't intend to
buy it. So my questions are
a) Am I barking up the wrong tree, or am I right that the problem is not
having a Project COM object defined in my system?
b) If I'm right about that, is there a way to get that object defined in my
system so I can experiment a bit so as to help my friend along? The
alternative seems to be to talk to him in general about working with objects
and letting him experiment on his own, which may work. But a little sample
code from me would surely help him along.