Hi,
have this code for filtering but I am getting this error:
invalid use of Me keyword,
also how can get the another code to put the list back original list before filtering.
thanks,
have this code for filtering but I am getting this error:
invalid use of Me keyword,
Code:
Private Sub ReapplyFilter()
Application.EnableEvents = False
With Me.[a1]
.AutoFilter
.AutoFilter Field:=4, Criteria1:="r", Operator:=xlAnd
End With
Application.EnableEvents = True
End Sub
also how can get the another code to put the list back original list before filtering.
thanks,