Excel VBA : Memory Problem

  • Thread starter Thread starter jlaperriere
  • Start date Start date
J

jlaperriere

Hello


I have a big worksheet and I think I have a memory problem with some
modules

Some result are very strange

I think than a module or a sheet have a limit memory size ?

How I can know the memory use by some VBA module or Sheet



Thanks
 
What exactly are the symptoms? What is your code? What results do you get? What makes you think it is a memory problem?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

|
| Hello
|
|
| I have a big worksheet and I think I have a memory problem with some
| modules
|
| Some result are very strange
|
| I think than a module or a sheet have a limit memory size ?
|
| How I can know the memory use by some VBA module or Sheet
|
|
|
| Thanks
|
 
Rather than check how much memory you have used. You might want to consider
how much memory is free.

At the point the think the module fails insert this code and it will tell you
how much memory is left available

MsgBox Application.MemoryFree

If this doesn't work, try it in other areas of the code

It might help
 
Unless you are using Excel 2007.

MemoryUsed, MemoryFree, etc. are no longer Properties/Methods of the
Application object (with no equivalent provided) and use of them will cause
an error.

Found that out the first time a user fired up 2007. Nice surprise. To my
knowledge it's not actually mentioned anywhere that they were intentionally
depreciated, they are simply absent from the object model.
 
Rather than check how much memory you have used. You might want to consider
how much memory is free.

At the point the think the module fails insert this code and it will tell you
how much memory is left available

MsgBox Application.MemoryFree

If this doesn't work, try it in other areas of the code

It might help

Hi Crowbar,
I have tried
MsgBox Application.MemoryFree
in a new work book containing only this statement and worksheet blank.

I am getting a reply msgbox with a number 1048576.

What does it mean?

Regards,
Madiya
 
Rather than check how much memory you have used. You might want to consider
how much memory is free.

At the point the think the module fails insert this code and it will tell you
how much memory is left available

MsgBox Application.MemoryFree

If this doesn't work, try it in other areas of the code

It might help

________________________________________________________________________

Hello


I use Excel 2007 and I try MsgBox Application.MemoryFree

I try it at different places and I have the same problem "Type
incompatibility"

In the Help file, for Application I don't found Event, property
or Methods for Memory

Thanks
 
it was removed in 2007. no longer available.



________________________________________________________________________

Hello


I use Excel 2007 and I try MsgBox Application.MemoryFree

I try it at different places and I have the same problem "Type
incompatibility"

In the Help file, for Application I don't found Event, property
or Methods for Memory

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top