Any possible ways to shrink Excel files with Macros?

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

Guest

Hi,

When there are macros in a file, does it increase the file size significantly?
If yes, how is it possible for me to reduce the file size without deleting any of my information/macros?

Regards,
Karen
 
I've never thought that macro code increased the size in typical workbooks. I'd
guess that the amount of data in each worksheet has much more to do with the
size of the workbook. (Well, except for those workbooks that are mostly code
(addins and the like).)

But one thing that can increase the size of workbooks is when excel sets the
last used cell. If you hit ctrl-end, do you go to where you think the last used
cell should be? (Excel remembers what you've used and needs to be reset
explicitly).

If it goes way past where you think it should be, try some of the techniques at
Debra Dalgleish's site:

http://www.contextures.com/xlfaqApp.html#Unused

====
And if you want, you can use Rob Bovey's code cleaner. It exports your modules
(temporarily) and then reimports them. This can have some affect on workbook
size.

You can find it at:
http://www.appspro.com/

(but the next time you compile the project or run some of the macros (and then
save the workbook), the size will go up.)
 

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