Sub DynamicFilter()
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column is BLANK
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="="
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column is NONBLANK
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="<>"
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column IS EQUAL TO the value in the ActiveCell
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="=" & ActiveCell.Value
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column IS NOT EQUAL TO the value in the ActiveCell
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="<>" & ActiveCell.Value
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column IS EQUAL TO the value "Cat"
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="=Cat"
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column IS NOT EQUAL TO the value "Cat"
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="<>Cat"
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column BEGINS WITH the value "Cat"
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="Cat*"
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column DOES NOT BEGIN WITH the value "Cat"
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="<>Cat*"
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column ENDS WITH the value "Cat"
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="=*Cat"
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column DOES NOT END WITH the value "Cat"
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="<>*Cat"
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column CONTAINS the value "Cat"
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="=*Cat*"
'Filter the database on the field containing the ActiveCell to display rows where the value in the ActiveCell's column is DOES NOT CONTAIN the value "Cat"
ActiveCell.CurrentRegion.AutoFilter ((ActiveCell.Column - ActiveCell.CurrentRegion.Column) + 1), Criteria1:="<>*Cat*"
End Sub