Creates a PivotTable report based on a PivotCache object.
Parameters:
TableDestination - The cell in the upper-left corner of the PivotTable report’sdestination range (the range on the worksheet where the resulting PivotTable report will be placed). The destination range must be on a worksheet in the workbook that contains the PivotCache object specified by expression.
Creates a PivotTable report based on a PivotCache object.
Parameters:
TableDestination - The cell in the upper-left corner of the PivotTable report’sdestination range (the range on the worksheet where the resulting PivotTable report will be placed). The destination range must be on a worksheet in the workbook that contains the PivotCache object specified by expression.
TableName - The name of the new PivotTable report.
refresh
voidrefresh()
Updates the cache of the PivotTable object.
getRefreshOnFileOpen
booleangetRefreshOnFileOpen()
Gets a value indicating whether the PivotTable cache is automatically updated each time the workbook is opened. Default value is false.
setRefreshOnFileOpen
voidsetRefreshOnFileOpen(boolean value)
Sets a value indicating whether the PivotTable cache is automatically updated each time the workbook is opened.