PivotCache.UpgradeOnRefresh Property
Contains information on whether to upgrade the PivotCache and all connected PivotTables on the next refresh. Read/write.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property UpgradeOnRefresh As Boolean
Get
Set
'Usage
Dim instance As PivotCache
Dim value As Boolean
value = instance.UpgradeOnRefresh
instance.UpgradeOnRefresh = value
bool UpgradeOnRefresh { get; set; }
Property Value
Type: System.Boolean
Boolean
Remarks
The default value is False. If the property is set to True for a PivotCache, refreshing any PivotTable attached to that PivotCache will upgrade the PivotCache and all the attached PivotTables to version 2007 (PivotTable.Version = 3) as part of the refresh.
If the property is set to False for a PivotCache, refreshing any PivotTable attached to that PivotCache will not change the version of the PivotCache, nor the version of any attached PivotTables. They all stay the same version as before the refresh.
Saving to a short_Excel2007 file format, when in compatibility mode will set this property to True for all PivotCaches in the workbook.