VBA help
I'm trying to amend a simple macro by copy/paste and amending the VBA.
The macro runs until it gets to my first new line, the gives a message "
Run-time error 1004 AutoFilter Method of Range class failed".
The line it stops at is :-
Selection.AutoFilter Field:=7, Criteria1:="15", Operator:=xlTop10Percent
( I want it to autofilter and get the top 15% in that column)
Any ideas what I'm doing wrong ?
|