Get Resources in ActiveProject Only when Multiple Projects are Ope

J

Jerry Sullivan

Typically, to cycle through each resource in the active project, code like
this works fine:

Dim resX as Resource
For Each resX In ActiveProject.Resources
<insert mycode here..>

Next resX

However, I just noticed that when more than one project is open, this code
will go through all resources in all open projects. This is consistent with
the Resource Sheet view.

How can I access just the resources in my active project? The resources
don't necessarily have assignments yet, so I can't work through the Tasks or
Assignments. The Build Team from Enterprise dialog seems to be able to filter
out just the actiive project.

We are using MS Project 2007 with Enterprise Project Server.

Thanks,
--Jerry
 

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