Project version independent COM interface

J

John Grant

How do I build an add-in for project using VB that supports project 2002 and
2003?
thanks
 
R

Rod Gill

Generally, to get version independent code with Office applications you need
to do late binding. Use:
Dim projApp as Object instead of:
Dim projApp as MSProject.Application

I use a compile switch to swap between late and early binding as early is
best for development and testing, but late gives version independence.
 
J

John Grant

the project interface has events so dim withevent projapp as
msproject.application
 

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