How to call macros of MS Project from VB program!!!!!!!!Please Reply!

G

Guest

Hi All :

I developed some macros by using Visual Basic editor
of Microsoft Project.I used MS Project properties and
methods over there.Now I have another program in VB to
access its records and i am able to get field values by
using oledb ver.10 of MS Project. But i dont know how to
run macros which i created in VB Editor of MS Project.

Earliest reponse would be appreciated.

Regards,

-Ijaz
 
R

Rod Gill

Hi,

You can't run macros fusing OLEDB. You need to use automation. Once you set
up a project application object,
ProjApp.Run "Macro Name" works.

--
For VBA posts, please use the public.project.developer group.
For any version of Project use public.project
For any version of Project Server use public. project.server

Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top