PivotCell.AllocateChange method (Excel)

Performs a writeback operation on the specified cell in a PivotTable report based on an OLAP data source.

Syntax

expression.AllocateChange

expression A variable that represents a PivotCell object.

Return value

Nothing

Remarks

This method executes an UPDATE CUBE statement to add just the change in this particular cell, but also includes any previous changes applied. After the UPDATE CUBE statement is executed, a PivotTable update is run, and then a ROLLBACK TRANSACTION statement is executed.

Running the AllocateChange method for a cell in a PivotTable report based on a non-OLAP data source generates a run-time error.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.