Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outline Level for new tasks 1

Status
Not open for further replies.

yashr

Programmer
Mar 1, 2005
17
0
0
US
Hello:

I just took a MS Project Intro class. In the class the instructor told us
the following:

If inserting task inbetween, new task will take outline level from task below.
If inserting task at the end, new task will take outline level from task
above.

This seems to work in most of the conditions. But this is not true for the
following

Tasks Outline level
Sum11 2
------Detail 11 3
Sum22 2
Sum 33 2

If I go to insert a line above Sum22 , it should default to outline 2. But
it gets inserted as outline 3 and as a detail to Sum11.
We are trying to insert tasks and subtaks thru code(VBA/javascript) and I
need to know how project handles outlines?
Any direction/help/ideas is well appreciated.

 
Level_of_new_task = max(level_of_task_above , level_of_task_below)

 
Oops ... that only works if all tasks are fully expanded.

Revised equation:

If task_above is a summary task and
task_above is collapsed then
Level_of_new_task = min(level_of_task_above , level_of_task_below)
else
Level_of_new_task = max(level_of_task_above , level_of_task_below)
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top