How do I work with 2 project files simultaneously

  • Thread starter George Rodenbach
  • Start date
J

Jack Dahlgren

Use File menu / open to open the projects you want to work with. Then from
the Window menu select "arrange all"

That will show them both in the same window.

-Jack Dahlgren
 
R

Richard L. Warren

George,

Are you talking about doing so programmatically within Project or Project
Server via the PSI from some other web services consumer?

P.S. I was more of a mid-ranger, but I changed a long time ago...;-)

=====
Richard Warren [MBA, PMP, MCITP for EPM]
http://richardlwarren.info


-----Original Message-----
From: George Rodenbach [mailto:[email protected]]
Posted At: Tuesday, August 05, 2008 4:55 PM
Posted To: microsoft.public.project.developer
Conversation: How do I work with 2 project files simultaneously
Subject: How do I work with 2 project files simultaneously
 
J

Jack Dahlgren

If you are talking about using VBA on two projects simultaneously just do
something like this:

dim aProj as Project
dim bProj as Project
set aProj = application.projects(1)
set bProj = application.projects(2)

now you can work with either one of them.
Typically I would use a file browser to get the file name then open the
project and then set the file reference, then do the same for the second
project. From there you can compare or do whatever you like.

Things like this:
for each task in aProj
bProj.tasks.add(task.name)
next task

-Jack Dahlgren
 
G

George Rodenbach

That's on the right track, Jack, but the projects depend on the order they
were opened, and I want to assign the second one programmatically. I can
assign aProj to the current project, but how do I specify the .mpp file I
want for bProj?

I''''''''m a mainframer..but I can change.
 
G

George Rodenbach

I'm talking about programmatically in Project 2003. Project Server would be
too easy; I could use SQL then.
 
J

Jack Dahlgren

All depends on what you want to do. Application.projects is a collection of
all open projects. So application.projects(1) would be the first one you have
opened. (2) would be the second. You could also use project open and set
bProj to that project. I think you might find some examples of how to do this
on my site:

http://zo-d.com/blog/archives/programming.html

-Jack Dahlgren
 

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