Hi Mike,
In the Excel object model, Worksheet objects have an autofilter property and Range objects have an autofilter method. These are quite distinct. I've coloured in your code below to indicate which is which.
The Worksheet.Autofilter property does not accept any arguments. The Range.Autofilter method accepts 5 optional arguments.
The reason you are getting the error is because you are trying to pass 2 arguments into the Worksheet.Autofilter property.
On that line you should be using the Range.Autofilter method.
I hope that makes sense; let us know if you need us to post revised code for you?
Bookmarks