How much memory does VBA code occupy?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I know its probably a dumb question but I have a file in which I copy data
from another workbook through named ranges. Its a fairly big amount of data
so when copied the file is aroun 2.5 MB but when I delete all the data the
workbook is still 1.1 MB... does simple code take that much of space.

Thanks,
Oz
 
Hi Norman,
I checked out the site and got the reset used range code... it reduced the
empty workbook to 230 kbyte and the one with data to 1.87 MB...

Thank you a lot for your help!

Ozgur
 
Deleting data still retains information such as formatting. It is bette
to use Edit, Clear, All
 
Hi Ray,
Deleting data still retains information such as formatting. It is better
to use Edit, Clear, All.

Using Edit , Clear All may not reset the used range.

In this connection, you will note that Oz reporrted favourable results after
using techniques suggested by Debra Dalgleish to reset the used range.
 

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