Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
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 Project 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
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.