Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JL
 
Posts: n/a
Default Monitor memory usage

Is it possible to monitor memory usage via vba? Basically,
when a certain percentage of memory is reached I would
like to show a message box asking the user to close some
applications.

Thank you

  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default

JL

There are three properties you could use, MemoryUsed, MemoryFree,
TotalMemory. Like so

Sub memory()
With Application
MsgBox "Total memory used: " & .MemoryUsed
MsgBox "Total memory free: " & .MemoryFree
MsgBox "Total memory: " & .MemoryTotal
End With
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"JL" wrote in message
...
Is it possible to monitor memory usage via vba? Basically,
when a certain percentage of memory is reached I would
like to show a message box asking the user to close some
applications.

Thank you



Reply
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
Expanding memory usage Excel 2003 Tieme Woldman Excel Discussion (Misc queries) 0 March 9th 05 02:55 PM
Usage of sumif Charles Excel Discussion (Misc queries) 2 March 8th 05 05:27 AM
Display material with usage lintan Excel Worksheet Functions 4 November 25th 04 08:32 AM


All times are GMT +1. The time now is 12:09 PM.

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

About Us

"It's about Microsoft Excel"