LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Pivot Table refresh in VBA code not working

Hi,
I'm getting an error when I try to refresh a pivot table that was created
using VBA code in Excel 2000. This the error: "Refresh method of pivot table
class failed".

Here is the piece of code:
Set ptCache.Recordset = rst
With wsSheet
Set ptTable = .PivotTables("Test")
End With
'Refresh Data.
ptTable.RefreshTable

Initially when I get the recordset and create the pivot table, every is
populated correctly. But when I need to run the refreshing code to get new
data into the pivot table, the refreshtable fail.

Any suggestion?
I will appreciate that.

Thanks,
Carlos.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Refresh not working properly Satish Excel Discussion (Misc queries) 1 February 8th 10 01:00 PM
Code that will rerun or refresh a pivot table (after new data ispasted into the original Pivot Table's Source Range) Mike C[_5_] Excel Programming 3 February 15th 08 06:22 AM
refresh option of pivot table not working ceejgrl Excel Worksheet Functions 1 October 30th 06 11:28 PM
pivot table refresh code failed dreamz[_8_] Excel Programming 0 October 24th 05 08:22 PM
Code to Refresh Pivot Table S Jackson Excel Programming 1 August 31st 05 05:40 PM


All times are GMT +1. The time now is 08:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"