PivotTable.RefreshDataSourceValues Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the current values from the data source for all edited cells in a PivotTable report that is in writeback mode.
public:
void RefreshDataSourceValues();
public void RefreshDataSourceValues ();
Public Sub RefreshDataSourceValues ()
Remarks
To determine if a PivotTable report is in writeback mode, check the EnableWriteback or EnableDataValueEditing properties of the PivotTable object, either of which will return True. For PivotTable reports that are not in writeback mode, trying to execute this method generates a run-time error.
For PivotTable reports with OLAP data sources, executing the RefreshDataSourceValues() method creates a separate connection to the OLAP server and executes the full MDX query (the value of the PivotTable.MDX property) that is used to perform an update operation to populate the PivotTable report. Excel extracts the values returned for all cells that have been edited in the PivotTable view, and then stores them in the DataSourceValue property for those cells.
This method applies only to PivotTable reports with OLAP data sources. Trying to execute this method or PivotTable reports with non-OLAP data sources generates a run-time error.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應