I notice my VBA script doesn\'t work when there\'s an autofilter already on. Any idea why this is?
wbk.Activate
Set Criteria = Sheets(\"Sheet1\").Cel
I am also the same problem. I think the reason are,
1) When my activecell is within the table, "ActiveSheet.ShowAllData" can be work. 2) When my activecell not within the table, "ActiveSheet.ShowAllData" cannot work.Using this code, ActiveSheet.ListObjects("Srv").Range.AutoFilter Field:=1 can clear the filter.