Share via


PivotCache.EnableRefresh Property

Excel Developer Reference

True if the PivotTable cache or query table can be refreshed by the user. The default value is True. Read/write Boolean.

Syntax

expression.EnableRefresh

expression   A variable that represents a PivotCache object.

Remarks

The RefreshOnFileOpen property is ignored if the EnableRefresh property is set to False.

For OLAP data sources, setting this property to False disables updates.

Example

This example sets the first PivotTable report on worksheet one so that it cannot be refreshed.

Visual Basic for Applications
  Worksheets(1).PivotTables("Pivot1") _
    .PivotCache.EnableRefresh = False

See Also