View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
KG Old Wolf KG Old Wolf is offline
external usenet poster
 
Posts: 19
Default Create a PivotTable from a VBA array - help!

I want to run multiple pivot tables off an array exceeding 500k cells. I
believe it would vastly improve performance. I've tried variations of the
code below to no avail.

Set Pivot_Cache_01 = ActiveWorkbook.PivotCaches.Add _
(SourceType:=xlDatabase, _
SourceData:=Array_Work(1,1),(Rows_Count, Columns_Count))

I know there a xlConsolidation, xlDatabase, xlExternal, xlPivotTable, and
xlScenario but I don't see which would accept an array as input.

Any ideas!