Hi,
I'm working in excel 2007 but I appear to have a problem associated with the row limit from excel 2003. Can't figure it out exactly-
This code snippet works- it updates the pivottable with the order data from LargeModel, which is an input earlier
However, if I try to enter a larger number than 65536, I get a "type mismatch" error. I guess this is the row limit from excel 2003, but I'm using 2007, so I don't know what's causing the error.
Any ideas?
Thanks!!
I'm working in excel 2007 but I appear to have a problem associated with the row limit from excel 2003. Can't figure it out exactly-
This code snippet works- it updates the pivottable with the order data from LargeModel, which is an input earlier
Code:
ActiveSheet.PivotTables("PivotTable2").ChangePivotCache ActiveWorkbook. _
PivotCaches.Create(SourceType:=xlDatabase, SourceData:=Workbooks(LargeModel).Worksheets("OrderData").Range("A1:J65536") _
, Version:=xlPivotTableVersion12)
However, if I try to enter a larger number than 65536, I get a "type mismatch" error. I guess this is the row limit from excel 2003, but I'm using 2007, so I don't know what's causing the error.
Any ideas?
Thanks!!