AHA!
Just because no one ever explained how to do it before, it CAN be done.
ActiveWorkbook.PivotCaches(1).CreatePivotTable
This will create a new pivot table, with pre-existing cache #1
Want to know what details are in each cache?
Sub CacheList()
Dim pc As PivotCache
Dim wsList As Worksheet
Dim lRow As Long
lRow = 2
Set wsList = Worksheets.Add
For Each pc In ActiveWorkbook.PivotCaches
wsList.Cells(lRow, 1).Value = pc.Index
wsList.Cells(lRow, 2).Value = pc.SourceData
lRow = lRow + 1
Next pc
End Sub
I hope this helps someone.
Bookmarks