ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivot Cache Memory (https://www.excelbanter.com/excel-programming/319125-pivot-cache-memory.html)

Jared

Pivot Cache Memory
 
I'm running the following code to attempt to determine the mommeory usasge
used by a Pivot Cache connected to an external file.

Sub PVcashMem()
Mused = Round(Application.MemoryUsed / 1000000)
MsgBox ("Memory Used= " & Mused & " MBs")
For Each PC In ActiveWorkbook.PivotCaches
Mused2 = Round(PC.MemoryUsed / 1000000, 1)
MsgBox ("PC Memeory Used=" & Mused2 & " MBs")
Next PC
End Sub

The application is using 22MBs. However one pivot cache is using 12.6 MBs
and the other pivot cache is using 13.3 MBs for a total of 25.9MBs. This
seems to be a contradiction. Can anyone give me a quick lesson in pivot cache
memory management?


All times are GMT +1. The time now is 09:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com