Insert Project

S

Stephan Schmahl

Hi all,

does anybody know if a (sub-)project can be inserted by VBA-code (Menu
Insert/Project in MSP 2000)? And if yes, what would this code look like?

Thanks,
Stephan
 
R

Rod Gill

Hi,

Record a macro of you inserting a project manually. Make sure you select the
options you want as you do it. The recorded code will give you your answer.

--
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/
 
J

John

Stephan,
The answer is "yes". The VBA method you want is called:
ConsolidateProjects Method
The full syntax and an example for the the ConsolidateProjects Method is
given in the VBA help file.

The menu for inserting projects used to be called "Consolidate Projects"
and I guess the VBA method name was never changed. I have been
frustrated many times by an obscure or hard to find method so I
understand your frustration.

Hope this helps.
John
 
J

John

Stephan,
You're welcome. If you thought that was hard to find, here's a challenge
for you. Find the method to expand all tasks in a consolidated file :)

John
 

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