View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Samuel Samuel is offline
external usenet poster
 
Posts: 26
Default pivot table filter

I recorded a macro and simulated what I want to happen automatically.

Obviously PivotTable5 is what I want to change automatically based on
PivotTable 4

ActiveSheet.PivotTables("PivotTable4").PivotFields ("Facility").ClearAllFilters

ActiveSheet.PivotTables("PivotTable4").PivotFields ("Facility").CurrentPage = _
"MCMC"

ActiveSheet.PivotTables("PivotTable5").PivotFields ("Facility").ClearAllFilters

ActiveSheet.PivotTables("PivotTable5").PivotFields ("Facility").CurrentPage = _
"MCMC"


"Héctor Miguel" wrote:

hi, samuel !

I have two independent pivot tables. Each has 3 filters.
I would like to change the filters of the second pivot table based on the values in the first pivot table's filters.
Is this possible?


I can't "see" your layout, but try using vba/code in the '_change' event (in your worksheet/s or workbook object)
to make "other" filter/s match the (current) "changing-cell-filter" ;)

hth,
hector.