Skip to main content

Application.SheetPivotTableAfterValueChange event

Occurs after a cell or range of cells inside a PivotTable are edited or recalculated (for cells that contain formulas).


expression.SheetPivotTableAfterValueChange (ShTargetPivotTableTargetRange)

expression A variable that represents an Application object.


Name Required/Optional Data type Description
Sh Required Object The worksheet that contains the PivotTable.
TargetPivotTable Required PivotTable The PivotTable that contains the edited or recalculated cells.
TargetRange Required Range The range that contains all the edited or recalculated cells.

Return value



The PivotTableAfterValueChange event does not occur under any conditions other than editing or recalculating cells. For example, it will not occur when the PivotTable is refreshed, sorted, filtered, or drilled down on, even though those operations move cells and potentially retrieve new values from the OLAP data source.

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>