Consulting

Results 1 to 2 of 2

Thread: Solved: Memory used

  1. #1
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location

    Solved: Memory used

    Hello,

    Is there a way to determine how much memory is being used by a VBA procedure i.e. as it creates variables and objects and subsequently removes them from memory?

    Thanks
    Phil

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Greetings,

    Probably a better way and I wouldn't wager on this, but I think you could use:

    =INFO("memused")

    ...on a worksheet someplace. Then you could grab the val by code at the appropriate places and compare before/after... Not tested, but I would probably force a calculation before any time I grabbed the val of the cell.

    Hope that helps,

    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •