Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
AK AK is offline
external usenet poster
 
Posts: 56
Default Growing file size

Hi,

I have created (Excel XP) a "report generator" which grows oddly in size.
The basic procedure (this is supposed to run twice a week or so) is:

1. fetch data to a temp sheet from different dBase files using queries
2. calculate something based on this data to the main sheet
3. clear the temp sheet and goto 1
4. after everything is calculated, save the front sheet as a separate report
file

Basically everything runs fine, the generator file is around 120KB and the
report file around 80KB. However, the generator file grows in size when more
reports are generated. After around 10 test runs the size got up to 750KB. In
the long run, this is going to cause problems. One solution could be to
publish the generator as read-only (?), but I am willing to find the solution
to the problem first.

I've searched the newsgroup, tried all possible solutions and found nothing.
The generator obviously saves something "to itself" after every run, but what
on earth could it be?

Thanks in advance!

-Anssi K.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Growing file size

I had the same problem with queries. The Temp sheet kept filling up with
references to old queries. Another problem could be in the way you clear the
Temp sheet. Excel remembers the "Used Range" of a sheet even though it
appears empty. Hit Ctrl+End on that sheet to find the lower right corner of
the Used Range. The answer to both problems is to not keep the Temp sheet.
Add the sheet to do your queries and delete it when you are through with it.

Mike F
"AK" wrote in message
...
Hi,

I have created (Excel XP) a "report generator" which grows oddly in size.
The basic procedure (this is supposed to run twice a week or so) is:

1. fetch data to a temp sheet from different dBase files using queries
2. calculate something based on this data to the main sheet
3. clear the temp sheet and goto 1
4. after everything is calculated, save the front sheet as a separate
report
file

Basically everything runs fine, the generator file is around 120KB and the
report file around 80KB. However, the generator file grows in size when
more
reports are generated. After around 10 test runs the size got up to 750KB.
In
the long run, this is going to cause problems. One solution could be to
publish the generator as read-only (?), but I am willing to find the
solution
to the problem first.

I've searched the newsgroup, tried all possible solutions and found
nothing.
The generator obviously saves something "to itself" after every run, but
what
on earth could it be?

Thanks in advance!

-Anssi K.




  #3   Report Post  
Posted to microsoft.public.excel.programming
AK AK is offline
external usenet poster
 
Posts: 56
Default Growing file size

"Mike Fogleman" wrote:

I had the same problem with queries. The Temp sheet kept filling up with
references to old queries. Another problem could be in the way you clear the
Temp sheet. Excel remembers the "Used Range" of a sheet even though it
appears empty. Hit Ctrl+End on that sheet to find the lower right corner of
the Used Range. The answer to both problems is to not keep the Temp sheet.
Add the sheet to do your queries and delete it when you are through with it.


Thanks! I thought that Selection.ClearContents would do the same as delete,
but it seems that it leaves the references (etc) there.

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
shared workbook growing in size PullingMyHairOut Excel Discussion (Misc queries) 1 May 29th 09 03:54 PM
File size growing growing exponentially Steve Excel Discussion (Misc queries) 3 May 24th 09 06:29 PM
"Growing" File Size: A Solution John Childs Excel Discussion (Misc queries) 0 July 23rd 07 02:08 AM
Saving Excel (2003) File Causes Growing Size [email protected] Excel Discussion (Misc queries) 1 December 13th 06 11:47 AM
File Size Keeps Growing On Import les4825 Excel Discussion (Misc queries) 0 March 1st 06 09:17 AM


All times are GMT +1. The time now is 02:55 PM.

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"