PRJ: Filter for Summary and Related Detail Tasks (97850)
The information in this article applies to:
- Microsoft Project 98 for Windows
- Microsoft Project for Windows 95 4.1
- Microsoft Project for Windows 95 4.1a
- Microsoft Project for Windows 3.0
- Microsoft Project for Windows 3.0a
- Microsoft Project for Windows 4.0
- Microsoft Project for the Macintosh 3.0
- Microsoft Project for the Macintosh 4.0
This article was previously published under Q97850 SUMMARY
In Microsoft Project, you cannot create a filter that will automatically
display the related subordinate tasks of summary tasks that meet the filter
criteria. However, you can create a custom macro to achieve a result
similar to what this type of filter would produce.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
As an example to use a macro in conjunction with a custom filter to filter
all summary tasks that are currently in progress and then display all the
subordinate tasks associated with them:
Microsoft Project 98- On the Project menu, point to Filtered For, and then click More
Filters.
- Click New.
- In the Name box, type In-Progress Summaries. Set up the filter with the following information:
And/Or Field Name Test Value(s)
-----------------------------------------------------
Summary equals Yes
And Actual Start does not equal NA
And % Complete is less than 100% - Click OK. Click Close.
- On the Tools menu, point to Macro, and then click Macros.
- In the Macro Name box, type In_Progress_Summary_Groups. Click Create.
- Type the macro exactly as it appears below:
Sub In_Progress_Summary_Groups()
ViewApply Name:="Gantt Chart"
FilterApply Name:="In-Progress Summaries"
SelectColumn
OutlineHideSubtasks
OutlineShowAllTasks
End Sub
- On the File menu, click Close and Return to Microsoft Project.
- On the Tools menu, point to Macro, and then click Macros.
- Click "In_Progress_Summary_Groups" and then click Run.
NOTE: Any task filter may be substituted for the "In-Progress
Summaries" filter.
Running the above macro will automatically display the Gantt Chart
view, filter Summary tasks that are in progress, and then expand all
the subordinate tasks for the Summary tasks that are displayed.
If you do not want to create a macro, you can use the following
alternative:
- Apply the task filter.
- Click a column in the table.
- On the Project menu, point to Outline, and then click Hide Subtasks.
In Microsoft Project for Windows, you can also press ALT+SHIFT+HYPHEN.
- On the Project menu, point to Outline, and then click Show All Subtasks.
In Microsoft Project for Windows, you can also press ALT+SHIFT+*
(asterisk on the numeric keypad).
Microsoft Project 4.x- On the Tools menu, point to Filtered For, and then click More Filters.
- Click New.
- In the Name box, type In-Progress Summaries. Set up the filter with the following information:
Field Name Test Value(s) And/Or
---------------------------------------------------
Summary Equals Yes And
Actual Start Not Equals NA And
% Complete Less 100% - Click OK. Click Close.
- On the Tools menu, click Macros.
- Click New
- In the Macro name box, type In_Progress_Summary_Groups. Click OK.
- Type the macro exactly as it appears below:
Sub In_Progress_Summary_Groups()
ViewApply Name:="Gantt Chart"
FilterApply Name:="In-Progress Summaries"
SelectColumn
OutlineHideSubtasks
OutlineShowAllTasks
End Sub
- On the Tools menu, click Macros.
- Click "In_Progress_Summary_Groups" and then click Run.
NOTE: Any task filter may be substituted for the "In-Progress Summaries"
filter.
Running the above macro will automatically display the Gantt Chart
view, filter Summary tasks that are in progress, and then expand all
the subordinate tasks for the Summary tasks that are displayed.
If you do not want to create a macro, you can use the following
alternative:
- Apply the task filter.
- Click a column in the table.
- On the Project menu, point to Outlining, and then click Hide Subtasks.
In Microsoft Project for Windows, you can also press ALT+SHIFT+HYPHEN.
- On the Tools menu, point to Outlining, and then click Show All Tasks.
In Microsoft Project for Windows, you can also press ALT+SHIFT+*
(asterisk on the numeric keypad).
In Microsoft Project for the Macintosh, you can press COMMAND+OPTION+*
(asterisk on the numeric keypad).
Microsoft Project 3.0- On the Filter menu, click Define Filters.
- Click New.
- In the Name box, type In-Progress Summaries. Set up the filter with the following definition:
Field Name Test Value(s) Op
---------------------------------------------------------
Summary Equals Yes And
Actual Start Not Equals NA And
% Complete Less 100 - Click OK. Click Close.
- On the Macro menu, clcik Define Macros.
- In the Macro Name box, type In-Progress Summary Groups.
- Type the macro exactly as it appears below:
View .Name=[Gantt Chart]
Filter .Name=[In-Progress Summaries]
SelectColumn
OutlineCollapse
OutlineExpandAll - Click OK.
- To run the macro, click Set.
NOTE: Any task filter may be substituted for the "In-Progress
Summaries" filter.
Running the above macro will automatically display the Gantt Chart
view, filter Summary tasks that are in progress, and then expand all
the subordinate tasks for the Summary tasks that are displayed.
If you do not want to create a macro, you can use the following
alternative:
- Apply the task filter.
- Select a column in the table.
- Click Collapse.
In Microsoft Project for Windows, you can also press ALT+SHIFT+-
(minus sign on the numeric keypad, NUM LOCK off).
In Microsoft Project for Macintosh, you can press COMMAND+OPTIONS+-
(minus sign on the numeric keypad, NUM LOCK off).
- Click Expand All.
In Microsoft Project for Windows, you can also press ALT+SHIFT+*
(asterisk on the numeric keypad).
In Microsoft Project for Macintosh, you can press COMMAND+OPTION+*
(asterisk on the numeric keypad).
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbdtacode kbhowto KB97850 |
---|
|