LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default file size after using macro to save a worksheet

Your code is probably initializing cells that end up by not being used. They
have the overhad of any other cell, they just happen to be blank. This is
common if you hard code ranges into your macro. Take a look at the sheets
after your macro is done. Do the scroll bars allow you to move well beyond
the range of cells with values int them? If so all of the cells that you are
seeing beyond the last row and column of data need to be deleted. You are
best off to avoid creating these cells in the first place. To make the file
small again, delete (not clear contents) all of the blank rows at the bottom
and all of the blank column to the right. Now when you save your file you
should notice that it goes back to being small again...
--
HTH...

Jim Thomlinson


"BigPig" wrote:

Why would a worksheet that is normally 57 kb turn into 500kb after using
macros to enter data into it?

Example: I have a workbook that has a database in it, and a userform that
takes that data based on ssn's and places that specific data in appropriate
places in a spreadsheet that is made to look like a form. Then the user uses
a commmand button/macro to save the 'form' with the data in it, to a separate
folder. The new file is now 500 plus kbs.

I even went so far as to delete all the data, lines etc... and the file size
changed to 475 kb. Not a lot different.

Is there another solution to this file size dilemna?

Thankyou.

 
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
macro save a file name from a cell in 1st worksheet karene Excel Discussion (Misc queries) 2 April 10th 06 12:13 PM
How do I set up a macro to save an Excel worksheet as a .prn file? cher Excel Programming 2 March 1st 06 03:50 PM
File size increases with each save Garbunkel[_2_] Excel Programming 0 October 5th 05 10:12 PM
Macro to export a worksheet and save as new file Mike_M Excel Programming 2 May 25th 05 10:37 AM
using macro to save worksheet with unique file name Noell Excel Programming 3 October 15th 03 10:24 PM


All times are GMT +1. The time now is 06:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"