Application.FilterApply Method (Project)
Sets the current filter.
Syntax
expression .FilterApply(Name, Highlight, Value1, Value2)
expression A variable that represents an Application object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Name |
Required |
String |
The name of the filter to use. |
Highlight |
Optional |
Boolean |
True if Microsoft Project 2010 highlights rows rather than applying the filter. The default value is False. |
Value1 |
Optional |
String |
The first value to use when applying an interactive filter. |
Value2 |
Optional |
String |
The second value to use when applying an interactive filter. |
Return Value
Boolean
Example
The following example highlights filtered items.
Sub HighlightCriticalTasks()
FilterApply Name:="Critical", Highlight:=True
End Sub