Appending Data to an existing pivot table

  • Thread starter Thread starter MAF
  • Start date Start date
Yes. If the source is a rangenamed table, then you need only add new rows
then extend the range. Update the pivot table to renew the pivot values
 
Thanks for the example. I am not able to view my data because I am doing
the following

Dim pCache As Excel.PivotCache
Dim pTable As PivotTable

Set pCache = ActiveWorkbook.PivotCaches.Add(SourceType:=xlExternal)
Set pCache.Recordset = rst
Set pTable = pCache.CreatePivotTable(sheet.Range("A8"))

Set AddPivotTable = pTable

Is this not the correct way to setup the pivottable?
 
I was able to create two Pivot tables on the same sheet I would like to
create a third that containst the data fo the other two pivot tables, is
this possible?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top