expression.EndEdit(Accept)
expression Required. An expression that returns a PivotTable object.
Accept Optional Boolean. Specifies whether the current value is accepted. Setting this argument to False discards any changes to the detail cell and the previous value is restored. The default value is True.