Escanaba
asked on
Excel 2007 Change Pivot Filter Based On 2 Dynamic Variables
Hello,
Please see attached sample. Im hoping someone can provide a VB code that when ran will change the filters on the pivot table in sheet1 to what is reflected in cells B10 and E10 on the calculator tab. The macro should only change this pivot table so if there are others on the calculator tab they will not be affected.
Thanks!
EE-Sample.xlsx
Please see attached sample. Im hoping someone can provide a VB code that when ran will change the filters on the pivot table in sheet1 to what is reflected in cells B10 and E10 on the calculator tab. The macro should only change this pivot table so if there are others on the calculator tab they will not be affected.
Thanks!
EE-Sample.xlsx
ASKER
Its generating a 'method range of object worksheet failed error'.
ASKER
Ok...just caught the comment about naming the locations. Its now generating a different error as follows:
Cant execute code in break mode
at this point: If Not Intersect(Target, Range("clLocation")) Is Nothing Then
Cant execute code in break mode
at this point: If Not Intersect(Target, Range("clLocation")) Is Nothing Then
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you!
Open in new window
See attached file for operation
Thomas
filterpivot.xlsm