Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Do macros in Excel increase file size?

I have an Excel file with multiple (220+)macros in it. Does this greatly
increase the overall size of the file?

If so, is there a way to reduce the file size (by manipulating the macros -
similar to compressing images)?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Do macros in Excel increase file size?

Macros certainly do increase the file size; anything you put in a
workbook increases its size. The question is really whether that
increased size is significant. And the answer to that depends on how
much code you actually have. My overall experience is that VBA code
doesn't increase the file size of a workbook significantly. One
embedded JPG can add as much, if not more, to the file size than would
a few thousand lines of VBA.

VBA is already stored in a somewhat compressed manner and there isn't
really a way to further compress it.

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
The San Diego Project Group, LLC
(email is on the web site)
USA Central Daylight Time (-5:00 GMT)


On Thu, 9 Oct 2008 13:43:01 -0700, lenoxjoe
wrote:

I have an Excel file with multiple (220+)macros in it. Does this greatly
increase the overall size of the file?

If so, is there a way to reduce the file size (by manipulating the macros -
similar to compressing images)?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Do macros in Excel increase file size?

Depending on the amount of code involved with the macros, in can increase the
file size. shouldn't be a huuuuge difference, though.

I would check my scroll bars. If they are tiny and scrolling to the bottom
takes you well beyond your data, then delete any excess rows/vcolumns beyond
your data, place your cursor within your data and save.

As for the macros, you can store them on your personal macro workbook. That
way, it doesn't increase your existing file's size.

"lenoxjoe" wrote:

I have an Excel file with multiple (220+)macros in it. Does this greatly
increase the overall size of the file?

If so, is there a way to reduce the file size (by manipulating the macros -
similar to compressing images)?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Do macros in Excel increase file size?

If you save a copy of the workbook without the macros, you can compare the sizes
and see if that difference is great.

Rob Bovey has a utility called codecleaner that exports the code modules and
reimports them. This will reduce the size of the file--until the code is
recompiled. So if you save without recompiling (or running) the code, then
you'll see a reduction.

You can find it he
http://www.appspro.com/
or directly
http://www.appspro.com/Utilities/CodeCleaner.htm

Personally, I've found that the biggest thing I can do is make sure that excel's
last used cell (of each worksheet) isn't too far from where I want it to be.

You can find some techniques at Debra Dalgleish's site for resetting the last
used cell:
http://www.contextures.com/xlfaqApp.html#Unused


lenoxjoe wrote:

I have an Excel file with multiple (220+)macros in it. Does this greatly
increase the overall size of the file?

If so, is there a way to reduce the file size (by manipulating the macros -
similar to compressing images)?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Do macros in Excel increase file size?

Even at 220+ macros the increase in the file size is not going to be huge.
There is a discussion at the attached link about decreasing the file size of
the code by de-compiling it. In VBA there is no real benefit to compiled
code...

http://orlando.mvps.org/VBADecompile...IdC=OrlMoreWin
--
HTH...

Jim Thomlinson


"lenoxjoe" wrote:

I have an Excel file with multiple (220+)macros in it. Does this greatly
increase the overall size of the file?

If so, is there a way to reduce the file size (by manipulating the macros -
similar to compressing images)?

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
File size increase Tania Excel Discussion (Misc queries) 1 January 31st 07 08:26 AM
File Increase in size Martinj Excel Discussion (Misc queries) 7 November 7th 05 02:00 PM
Why does Excel file size increase GREATLY with only a SMALL pictu Bandar Excel Discussion (Misc queries) 1 November 2nd 05 02:17 PM
Excel file size - sudden increase Bradley Excel Discussion (Misc queries) 0 September 23rd 05 07:47 AM
File size increase Bill Clark Excel Discussion (Misc queries) 1 January 28th 05 06:57 PM


All times are GMT +1. The time now is 10:26 AM.

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"