At the Uk Excel User Conference I spoke to Roger Govier and he didn't know the answers to a couple of questions about pivotcaches.
He promised to look in to them if I posted them on the forum and maybe somebody else knowes the answers or can comment on these issues.
When I create pivotcaches in code all of them have the index zero and you can only use it to create a pivottable.
Only when I create a pivottable from one of them the pivotcahe index will be uniqe.
Is this a bug and will this be fixed in SP2...?
When I have 3 pivottables in my workbook the indexes of the pivotcahes are 1,2,3
When I delete pivottable 2 the second pivotcache is also destroyed but the indexes are 1,2 and not 1,3
Why is the index of a pivotcache not fixed...?
Jelle-Jeroen Lamkamp