Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default File size MASSIVE but why?

I have a quite a detailed report (Workbook) that has many macro's within.
On one sheet i have Photo's placed by a Macro into certain cells and sized to suit.

What i have done is run a macro that CLEARS ALL data and ALL Photos from the WorkBook.
This is OK, but i have NOTICED that the WorkBook size is now 56.6MB is size.

Is Excel storing the Images within somehow, although they are deleted?
How can i clear this temporary memory to reduce the file size again?

Corey....


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default File size MASSIVE but why?

One suggestion - there is an Add-In called FindLinks by Bill Manville. I
don't have the where to get it, but someone here may know. The reason is one
of my workbooks was bloating in size with continued use. When I ran
FindLinks, there were over 9000 bad links stored in the workbook, and
growing with each use. I found the source was I hyperlinked to websites and
gathered data to a helper sheet so I could update the data in my workbook.
Each time I ran the update, the helper sheet got data from over 200
websites. Here is the issue: the helper sheet was a hidden sheet and Excel
kept a link to it and all the hyperlinked sites, and the list grew with each
update.
The answer was not to keep the helper sheet in the workbook anymore.
When I run an update now, I add a new helper sheet to gather the data, and
then delete the sheet when the update is done.

May be of some help...
Mike F
"Corey" wrote in message
...
I have a quite a detailed report (Workbook) that has many macro's within.
On one sheet i have Photo's placed by a Macro into certain cells and sized
to suit.

What i have done is run a macro that CLEARS ALL data and ALL Photos from
the WorkBook.
This is OK, but i have NOTICED that the WorkBook size is now 56.6MB is
size.

Is Excel storing the Images within somehow, although they are deleted?
How can i clear this temporary memory to reduce the file size again?

Corey....




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default File size MASSIVE but why?

Hi Corey,

What i have done is run a macro that CLEARS ALL data and ALL Photos from

the WorkBook.

How does your macro do that. IOW does it really delete all photos and not
perhaps merely the delete rows or columns containing them. If that's what
the macro does they will not be deleted, merely made zero tall or zero wide,
effectively invisible.

To delete ALL inserted pictures in the workbook -

For Each ws In ActiveWorkbook.Worksheets
ws.Pictures.Delete
Next

Revert back if you only want to selectively delete pictures (or some other
type of shape), eg only those you 'think' you deleted previously .

Regards,
Peter T

"Corey" wrote in message
...
I have a quite a detailed report (Workbook) that has many macro's within.
On one sheet i have Photo's placed by a Macro into certain cells and sized

to suit.

What i have done is run a macro that CLEARS ALL data and ALL Photos from

the WorkBook.
This is OK, but i have NOTICED that the WorkBook size is now 56.6MB is

size.

Is Excel storing the Images within somehow, although they are deleted?
How can i clear this temporary memory to reduce the file size again?

Corey....




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 With Macros Has Increased From Its Origina Size Fred Excel Discussion (Misc queries) 1 April 26th 08 12:24 AM
Size Matters - minimizing file size [email protected] Excel Programming 1 April 23rd 07 04:26 PM
how to set sheet size to reduce file size LJ Excel Discussion (Misc queries) 1 November 26th 06 02:35 AM
Massive large size of Excel File after Updating coreman Excel Discussion (Misc queries) 2 September 13th 05 05:06 AM
How to get the size of the excel file, a sheet size (in bytes)? bookworm98[_13_] Excel Programming 1 January 28th 04 02:59 PM


All times are GMT +1. The time now is 06:28 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"