The information in this article applies to:
SYMPTOMSWhen you use the RefreshTable method to programmatically update data in a PivotTable, the active cell moves to a different location on the active worksheet. CAUSE
This problem occurs when the active sheet is not the sheet that contains
the PivotTable.
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspTo work around this problem, refresh the selected cells or select the cells again. To do this, type the following statement after the RefreshTable statement in your macro:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATION
The RefreshTable method updates data in the PivotTable to reflect changes
in the source data. The following example illustrates the RefreshTable
method, as well as the workaround that corrects the screen updating
problem.
REFERENCESFor more information about the RefreshTable method, click the Index tab in Visual Basic Help, type the following text refreshtableand then double-click the selected text to go to the "RefreshTable method" topic. Include the sources you used to create this article, such as references to the manual or Help file. Additional query words: pivot table XL98
Keywords : kbprg kbdta kbdtacode xlpivot xlmac |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |