Application.FilterApply Method

Project Developer Reference

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 Office Project 2007 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

Visual Basic for Applications
  Sub HighlightCriticalTasks()
    FilterApply Name:="Critical", Highlight:=True
End Sub

See Also