Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Memory Question
Hi is there any way to get the memory used by code, so that I can write it to
a text file. I have checked out the history on this group but can't find anything on this subject?. TIA Charles |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Memory Question
Try this:
Sub ShowMemoryUsage() Dim dMemUsed As Double dMemUsed = Round(Application.MemoryUsed / 1000, 1) MsgBox "Memory used: " & dMemUsed & " kB", ,"memory usage by Excel" End Sub RBS "vqthomf" wrote in message ... Hi is there any way to get the memory used by code, so that I can write it to a text file. I have checked out the history on this group but can't find anything on this subject?. TIA Charles |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Memory Question
Whilst these memory properties are available, I have seldom seen them have
much meaning apart from "a lot" or "not much". Also, there is lot going on in the background of Excel, that you can't control, so it's debatable how accurate they would be at any specific instant. NickHK "RB Smissaert" wrote in message ... Try this: Sub ShowMemoryUsage() Dim dMemUsed As Double dMemUsed = Round(Application.MemoryUsed / 1000, 1) MsgBox "Memory used: " & dMemUsed & " kB", ,"memory usage by Excel" End Sub RBS "vqthomf" wrote in message ... Hi is there any way to get the memory used by code, so that I can write it to a text file. I have checked out the history on this group but can't find anything on this subject?. TIA Charles |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
XL 2007 - Out of Memory - memory leak/bug? | Excel Discussion (Misc queries) | |||
VBA memory | Excel Discussion (Misc queries) | |||
Out of memory? | Excel Discussion (Misc queries) | |||
Question about releasing memory | Excel Programming | |||
The instruction at "0x65255ac9" referenced memory at "0x00000008". The memory could not be read. Clikc OK to terminate etc | Excel Programming |