Hello
I'm trying to filter a pivot table using a cell reference as my "value", which is current week #. For some reason, I keep getting autofilter 1004 error code and cant seem to figure out why.
My current code is as follows:
Sheets("Pivot").Select
ActiveSheet.Range("$A$1:$AV$950000").AutoFilter Field:=8, Criteria1:=Array(Format(Range("cl1").Value, "00")), Operator:=xlFilterValues
Part of the problem may be that columns A:AN are all filter fields, while columns AO:AV are the values...so i dont know, I tried A:AN in my ActiveSheet Range, I tried A2 instead of A1...i'm stuck :-/
If someone can help me filter this pivot based on cell reference, that'd be most excellent.
Thanks in advance!
Greg
I'm trying to filter a pivot table using a cell reference as my "value", which is current week #. For some reason, I keep getting autofilter 1004 error code and cant seem to figure out why.
My current code is as follows:
Sheets("Pivot").Select
ActiveSheet.Range("$A$1:$AV$950000").AutoFilter Field:=8, Criteria1:=Array(Format(Range("cl1").Value, "00")), Operator:=xlFilterValues
Part of the problem may be that columns A:AN are all filter fields, while columns AO:AV are the values...so i dont know, I tried A:AN in my ActiveSheet Range, I tried A2 instead of A1...i'm stuck :-/
If someone can help me filter this pivot based on cell reference, that'd be most excellent.
Thanks in advance!
Greg