The automatic filter row allows end-users to filter data on the fly, by typing text directly into the row. To do this in code, use the AutoFilterValue property. The type of the comparison operator used to create filter conditions for the current column is specified by the AutoFilterCondition property.
To learn more, see Filtering in Code.