Project.AutoFilter property (Project)

Gets or sets whether the AutoFilter feature is turned on for a project. Read/write Boolean.

Syntax

expression. AutoFilter

expression A variable that represents a Project object.

Remarks

The AutoFilter setting is in the Filter drop-down list on the View tab of the Ribbon.

Example

The following example turns on AutoFilter in the active project.

Sub turnOnAutoFilter() 
    ActiveProject.AutoFilter = 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.