?
Solved

MS Project - access Project Summary Task in VBA?

Posted on 2011-03-17
4
Medium Priority
?
2,048 Views
Last Modified: 2012-06-27
Is there a way to access the Project Summary Task in vba (when Show Project Summary Task is checked in Options | View)? When the mpp is exported to Excel, the Project Summary Task, with ID 0, is included, but when I traverse the tasks in VBA (For Each Task In
ActiveProject.Tasks) The Project Summary/TaskID 0 is not included, but if it has child tasks they are included. The resulting recordset doesn't make much sense.

I have an automation project that needs the Project Summary Task, if it is selected in the mpp. I suppose I could save the mpp to xls before working with the tasks in vba, but I'd rather avoid that step if possible.
0
Comment
Question by:dgmoore1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 12

Expert Comment

by:Dr. Thomas Henkelmann
ID: 35171903
You can use the project summary task with ActiveProject.Tasks.UniqueID(0). This is independent from the settings in Options..View.
0
 

Author Comment

by:dgmoore1
ID: 35172011
Interesting. I wonder why it isn't returned when you iterate For All Tasks in ActiveProject.Tasks...  I'll try this in my code and see what I get
0
 

Accepted Solution

by:
dgmoore1 earned 0 total points
ID: 35461933
I have determined that in order for the procedure I have developed to work correctly, the project summary task must be in MSP_TASKS. I am instructing my users not to employ Project's Show Project Summary Task.
0
 

Author Closing Comment

by:dgmoore1
ID: 35496484
Determined that the project summary task, if used, must be in the Tasks table.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

At the office, we’ve started to get serious about organizing what we’re doing. I mean, it was getting to the point where every time I received a phone call, it began with “I know you’re really busy, but…” My boss was taking tasks away from me left a…
Learn how ViaSat reduced average response times for IT incidents from 10 minutes to 30 seconds.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question