LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamic Pivot

Here is something to play with. Probably won't help much because if yo
test it by opening/closing workbooks the Free Memory mysteriously stay
the same whilst the Memory Used changes.

Doesn't give the same value as Task Manager either.

In the Windows 3.1 days Excel did not restore memory to the system o
closing, so merely opening and closing it without doing anything woul
crash the system after a few times.

'------------------------------------------
Sub EXCEL_MEMORY()
On Error Resume Next
PT = ActiveSheet.PivotTables(1).PivotCache.MemoryUsed
rsp = MsgBox( _
"Memory Used : " & Format(Application.MemoryUsed, "###,###")
vbCr & _
"Free Memory : " & Format(Application.MemoryFree, "###,###")
vbCr & _
"----------------------------------------" & vbCr & _
"Total Memory : " & Format(Application.MemoryTotal, "###,###"
& vbCr & _
"----------------------------------------" & vbCr & _
"PivotCache : " & Format(PT, "###,###") _
, vbOKOnly, " EXCEL MEMORY")
End Sub
'------------------------------------------------

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic pivot table linked to dynamic excel spreadsheets FErd Excel Worksheet Functions 0 April 29th 10 10:44 PM
Dynamic pivot table Prem Kumar Excel Discussion (Misc queries) 1 July 1st 08 01:06 PM
Dynamic formating a pivot friesr Excel Discussion (Misc queries) 2 March 12th 07 02:50 PM
Dynamic Pivot tables Phil Excel Discussion (Misc queries) 3 January 31st 05 03:33 PM
Dynamic pivot sum PFL Excel Discussion (Misc queries) 2 January 8th 05 04:16 PM


All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"