Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.05 KB

Excel.PivotCache.EnableRefresh.md

File metadata and controls

45 lines (26 loc) · 1.05 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotCache.EnableRefresh property (Excel)
vbaxl10.chm227075
vbaxl10.chm227075
Excel.PivotCache.EnableRefresh
5919198f-bb4a-eb54-1a28-41033b525fa1
05/03/2019
medium

PivotCache.EnableRefresh property (Excel)

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.

Worksheets(1).PivotTables("Pivot1") _ 
 .PivotCache.EnableRefresh = False

[!includeSupport and feedback]