Filter.Apply method (Project)

Applies the filter to the current view.

Syntax

expression.Apply (Highlight)

expression An expression that returns a Filter object.

Parameters

Name Required/Optional Data type Description
Highlight Optional Boolean If True, highlights the filtered items within the list of all items. If False, shows only the filtered items in the view. The default is False.

Return value

Nothing

Example

If the current view is a task view, the following example highlights the critical tasks.

ActiveProject.TaskFilters("Critical").Apply Highlight:=True

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.