Worksheet.PivotTableAfterValueChange Event (Excel)
Published: July 16, 2012
Occurs after a cell or range of cells inside a PivotTable are edited or recalculated (for cells that contain formulas).
expression .PivotTableAfterValueChange(TargetPivotTable, TargetRange)
expression A variable that represents a Worksheet object.
Parameters
|
Name |
Required/Optional |
Data Type |
Description |
|---|---|---|---|
|
TargetPivotTable |
Required |
The PivotTable that contains the edited or recalculated cells. |
|
|
TargetRange |
Required |
The range that contains all the edited or recalcuated cells. |
Return Value
Nothing
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.