This is the code I am using:
I receive the following error message, which I don't understand: RefreshTable method of PivotTable class failed![]()
Please Login or Register to view this content.
I would appreciate any help.
Thanks in advance
This is the code I am using:
I receive the following error message, which I don't understand: RefreshTable method of PivotTable class failed![]()
Please Login or Register to view this content.
I would appreciate any help.
Thanks in advance
Last edited by Aland2929; 02-27-2012 at 12:58 PM.
Hi Buddy,
Try Specifying the Sheet name if its only 1 sheet that is being refreshed:
If You want to Refresh Certain sheets then use this:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Mr MaGoo
Magoo.Inc MMVII
If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post
Thanks very much for your reply. I found the problem. I renamed the file with a different name. I had to go to Options and Change Data Source and then the above code worked. Once again, thanks for your response.
I am unable to find fix for this problem. I tried your approaches.
I had the same problem and solved it. Here was my problem...
I had a dynamic named range for the data source. The named range counted the number of columns COUNTA(ErrorMessages!$1:$1) in my data (and number of records COUNTA(ErrorMessages!$A:$A) in the list). I happened to add some text to the very first row outside the list range and the refresh tried to add an extra column that did not have a column header.
The dynamic named range (Raw_Error_Data) was:
=OFFSET(ErrorMessages!$A$1,0,0,COUNTA(ErrorMessages!$A:$A),COUNTA(ErrorMessages!$1:$1))
I removed the spurious text in the first row and everything worked.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks