PivotTable.EnableWriteback (Excel)

Returns or sets whether writing back to the data source is enabled for the specified PivotTable. The default value is False.

For OLAP data sources, setting the EnableWriteback property to True enables writeback and disables the alert for when the user overwrites values in the data area of the PivotTable. For non-OLAP data sources, setting the EnableWriteback property to True enables write-back in code, and also allows the user to change data values that previously could not be changed. The EnableWriteback and EnableDataValueEditing properties cannot be set to True at the same time. If the EnableDataValueEditing property is set to True and then the EnableWriteback property is set to True, the EnableDataValueEditing property is set to False automatically, the PivotTable is refreshed, and any editing performed on data values is lost. If the EnableWriteback property is set to True and then the EnableDataValueEditing property is set to True, the EnableWriteback property is set to False automatically, the PivotTable is not refreshed, and the data source values are restored. For non-OLAP data sources, setting this property generates a run-time error.


ActiveCell.PivotTable.EnableWriteback = True