View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Fred Smith Fred Smith is offline
external usenet poster
 
Posts: 623
Default Creating multiple pivot tables from same cache

I have a macro which should create three pivot tables from the same source
data. I can manually create all three sans problem. However, when I execute
the code, I get the first two tables, but on the third table, Excel stops
with error 1004 on the following statement:

Set PT = PTCache.CreatePivotTable(TableDestination:="", _
TableName:="AssetLevels")

This is exactly the same statement which starts off the creation of the
second table (other than changing the TableName).

I'm using XL2002, but I need it to work in XL2000 as well.

What am I doing wrong?

--
Regards,
Fred
Please reply to newsgroup, not e-mail