Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Updating large pivot source data

Hello,

I'm experiencing the following problem with a very simple macro in Excel
2007 to update pivot table data source. That is, my data has more than 74000
rows and I'm trying to update the source data with the following code:

Sub Macro1()
Dim rng1 As Range
Set rng1 = Sheets("Test_sheet").Range("A1:A74000")
ActiveSheet.PivotTables("Pivot-taulukko1").ChangePivotCache
ActiveWorkbook. _
PivotCaches.Create(SourceType:=xlDatabase, SourceData:=rng1, _
Version:=xlPivotTableVersion12)
End Sub

The problem is that the code works if the source data is less than 65536
rows long but if I change the source data to range to row 65537 the code
stops to work and I get an error Run time error '13' Type mismatch.

Could somebody now help me with this issues to get this issue fixed?

Best regards
Vepa

Reply
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
Updating source data links 2a1d Charts and Charting in Excel 0 April 27th 10 02:48 PM
updating pivot tables using dynamic data source dab4211 Excel Discussion (Misc queries) 3 July 24th 06 09:30 PM
Pivot Table data source "data source contains no visible tables" Jane Excel Worksheet Functions 0 September 29th 05 08:28 PM
Updating source data while in Pivot Table Carim[_3_] Excel Programming 4 April 27th 05 02:37 PM
Error updating pivot table source data CRL Excel Programming 1 April 29th 04 05:20 AM


All times are GMT +1. The time now is 08:13 PM.

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

About Us

"It's about Microsoft Excel"