Export (0) Print
Expand All
Expand Minimize

PivotTable.EnableWriteback Property (Excel)

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

Version Added: Excel 2010

expression .EnableWriteback

expression A variable that represents a PivotTable object.

Return Value

Boolean

For OLAP data sources, setting to the EnableWriteback property to True to 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 of the PivotTable object 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.

Show:
© 2015 Microsoft