I just tried the following method:
ActiveSheet.PivotTables("ptBatt").PivotFields("CellNameID").PivotFilters.Add _
Type:=xlValueIsGreaterThanOrEqualTo, DataField:=ActiveSheet.PivotTables( _
"ptBatt").PivotFields("Power Plant Ratio"), Value1:=0.5
by recording a macro. Doing it manually works.
When I put the exact same code in the Worksheet Change event, it errors out:
Error 1004: (guessed translation from french) Impossible to read the PivotFields property of the PivotTable class.
What am I missing?
Bookmarks