ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   File size (https://www.excelbanter.com/excel-discussion-misc-queries/228352-file-size.html)

LiAD

File size
 
Hi,

I have an excel folder which has four copy paste delete type macros working
between about 10 sheets and several large databases of 2000 products and
machines with index, match and calculation functions.

The file is growing at a collosal rate, its now 84M!

Is there any way of reducing this without having to start from scratch?

Thanks
LiAD

Gary''s Student

File size
 
1. If you have pivot tables, consider not saving them with the file. Clear
the table and re-create them with macros after you have opened the file.

2. If you have the same equation/formula pasted down 10's of thousands of
rows, consider not populating the column until after the file is opened and
then doing the copy with a macro.
--
Gary''s Student - gsnu200847


"LiAD" wrote:

Hi,

I have an excel folder which has four copy paste delete type macros working
between about 10 sheets and several large databases of 2000 products and
machines with index, match and calculation functions.

The file is growing at a collosal rate, its now 84M!

Is there any way of reducing this without having to start from scratch?

Thanks
LiAD


Roger Govier[_3_]

File size
 
Hi

Check each sheet to find where Excel thinks the last cell is.
Type Control+End and see where it takes you.
If it is beyond where your data extends in either rows or columns, delete
all columns to the right of your data and delete all rows below your last
row of data or the last row where you NEED to have formulae. Then save the
file and re-open.
If you have copied formulae all the way down the sheet just to allow for
future data entry, do you really need that?
Only copy down for as far as you can really expect to enter data, or better
still write a macro to copy formulae down in blocks of say a further 100
rows below the last used row when you open the file.

Have you got Conditional Formatting set for the whole sheet? If so, change
it to only cover the range that you need formatted.
Where possible, use Pivot Tables for your calculations rather than lots of
Sumproduct or Array formulae.
Used Dynamic Ranges rather than giving huge ranges in your formulae. This
won't save space but will probably improve speed.
In terms of speed of opening, ensure the macros that run have

Application.ScreenUpdating = False
Application.CalculationMode= xlManual
at the start of the macro, and

Application.ScreenUpdating = True
Application.CalculationMode= xlAutomatic
set at the end

--
Regards
Roger Govier

"LiAD" wrote in message
...
Hi,

I have an excel folder which has four copy paste delete type macros
working
between about 10 sheets and several large databases of 2000 products and
machines with index, match and calculation functions.

The file is growing at a collosal rate, its now 84M!

Is there any way of reducing this without having to start from scratch?

Thanks
LiAD



LiAD

File size
 
Good tips.

Thanks

"Roger Govier" wrote:

Hi

Check each sheet to find where Excel thinks the last cell is.
Type Control+End and see where it takes you.
If it is beyond where your data extends in either rows or columns, delete
all columns to the right of your data and delete all rows below your last
row of data or the last row where you NEED to have formulae. Then save the
file and re-open.
If you have copied formulae all the way down the sheet just to allow for
future data entry, do you really need that?
Only copy down for as far as you can really expect to enter data, or better
still write a macro to copy formulae down in blocks of say a further 100
rows below the last used row when you open the file.

Have you got Conditional Formatting set for the whole sheet? If so, change
it to only cover the range that you need formatted.
Where possible, use Pivot Tables for your calculations rather than lots of
Sumproduct or Array formulae.
Used Dynamic Ranges rather than giving huge ranges in your formulae. This
won't save space but will probably improve speed.
In terms of speed of opening, ensure the macros that run have

Application.ScreenUpdating = False
Application.CalculationMode= xlManual
at the start of the macro, and

Application.ScreenUpdating = True
Application.CalculationMode= xlAutomatic
set at the end

--
Regards
Roger Govier

"LiAD" wrote in message
...
Hi,

I have an excel folder which has four copy paste delete type macros
working
between about 10 sheets and several large databases of 2000 products and
machines with index, match and calculation functions.

The file is growing at a collosal rate, its now 84M!

Is there any way of reducing this without having to start from scratch?

Thanks
LiAD




LiAD

File size
 
Helps quite a bit actually. Cheers

Thanks

"Gary''s Student" wrote:

1. If you have pivot tables, consider not saving them with the file. Clear
the table and re-create them with macros after you have opened the file.

2. If you have the same equation/formula pasted down 10's of thousands of
rows, consider not populating the column until after the file is opened and
then doing the copy with a macro.
--
Gary''s Student - gsnu200847


"LiAD" wrote:

Hi,

I have an excel folder which has four copy paste delete type macros working
between about 10 sheets and several large databases of 2000 products and
machines with index, match and calculation functions.

The file is growing at a collosal rate, its now 84M!

Is there any way of reducing this without having to start from scratch?

Thanks
LiAD



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com