P
Peter Rooney
I'm trying to filter my plan to all tasks for any one of 4 sub teams in my
department.
The projects are level 2 tasks and the teams are level 3 tasks - I filter to
show just the team name (say for example, the "Core Tools" team, and when my
filtering is complete, I see something like this:
Plan Header (Level 1)
Project 1 (Level 2)
Core Tools (Level 3)
Project 2 (Level 3)
Core Tools (Level 3)
However, all tasks are displayed with a box with a minus sign against them,
as against a box with a plus sign. If I click the minus sign, it turns into a
plus sign - if I then click the plus sign, the task expands correctly. I've
recorded myself doing this and the resulting code for the above two steps is:
<<Click the box with minus sign>> OutlineHideSubTasks
<<Click the box with plus sign>> OutlineShowSubTasks
If I put these two lines into a macro, click on a task with a box containg a
minus sign, the task is unpacked correctly. If however, I put the code into
the macro below to scan and unpack all tasks for the "Core Tools" team,
nothing happens!
Sub AAExpand()
Dim TestTask As Task
For Each TestTask In ActiveProject.Tasks
If Not TestTask Is Nothing Then
If TestTask.Name = "Core Tools" Then
TestTask.OutlineHideSubTasks
TestTask.OutlineShowSubTasks
End If
End If
Next TestTask
End Sub
All assistance (as usual) gratefully accepted!
Cheers
Pete
department.
The projects are level 2 tasks and the teams are level 3 tasks - I filter to
show just the team name (say for example, the "Core Tools" team, and when my
filtering is complete, I see something like this:
Plan Header (Level 1)
Project 1 (Level 2)
Core Tools (Level 3)
Project 2 (Level 3)
Core Tools (Level 3)
However, all tasks are displayed with a box with a minus sign against them,
as against a box with a plus sign. If I click the minus sign, it turns into a
plus sign - if I then click the plus sign, the task expands correctly. I've
recorded myself doing this and the resulting code for the above two steps is:
<<Click the box with minus sign>> OutlineHideSubTasks
<<Click the box with plus sign>> OutlineShowSubTasks
If I put these two lines into a macro, click on a task with a box containg a
minus sign, the task is unpacked correctly. If however, I put the code into
the macro below to scan and unpack all tasks for the "Core Tools" team,
nothing happens!
Sub AAExpand()
Dim TestTask As Task
For Each TestTask In ActiveProject.Tasks
If Not TestTask Is Nothing Then
If TestTask.Name = "Core Tools" Then
TestTask.OutlineHideSubTasks
TestTask.OutlineShowSubTasks
End If
End If
Next TestTask
End Sub
All assistance (as usual) gratefully accepted!
Cheers
Pete