Excel File Size Growth

rodweston

New Member
Joined
Mar 20, 2008
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I am using Excel 2003. I have developed a workbook that is in shared use by at least two users 24x7. The workbook has eight forms, nine modules, and vba programming on each worksheet. There are two worksheets that rarely change and have little data. The other worksheets, one for each month, have headers on rows 1-4. Data is added at least every 30 minutes. When I set up the workbook for sharing, I instruct it to not save changes. In the course of the month, the worksheet will encompass about 1200 to 2000 rows and 40 columns. The data for each cell is simple and short, typically around six to ten characters with a maximum of 15.

I have a template for this workbook that is 812 kb. When I move the data into a new copy of the template, the size typically runs around 2MB. From that point, the size grows slowly but regularly. Within two weeks the size will reach over 20MB. If I load the data into a new copy of the template, it shrinks to no more than 4MB. As the workbook approaches 20MB, it occasionally acts erratically. After copying the data into the new copy of the template, it works normally again.

I update (copy the data to a fresh copy of the template) every month after copying the current copy to an archive and deleting the earliest month's worksheet, but I am having to update every two weeks because of this issue. Any ideas on what could be causing it? I've read all the related postings and tried what I found there to no avail.

Thank you.
Rod Weston
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi Rod,

check for the last active cell in the worksheets by pressing "End" and "Home". If this takes you to a cell far below and beyond the data entry range, this is where the problem may lie. Maybe some of your macros access cells outside of the active range and thus increase the active range each time the macro is run.

I've had that happen once and the problem went away after I made sure only the active part of the worksheet was handled by macros.

HTH

Teylyn
 
Upvote 0
Thanks. I'll check that immediately. I often go to the last entry on a worksheet using "lngLastRowNbr = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row" and I try to be very precise in defining my ranges, but I do know that the last cell routinely ends up several thousands of rows below the last used cell. I've never been able to track down how or when this happens, but within twelve hours of updating to the latest version of the template, it will be there again. So I'll start looking at all my range definitions and see if I can find the culprit. Thanks again.
 
Upvote 0
I believe I've found it. In a simple little formatting routine, I had somehow used an ampersand in the place of a plus sign when defining my range. So instead of formatting the last row plus one more, I was formatting that row plus several thousand more! Thank you again for your assistance.

Rod Weston
 
Upvote 0
"Glad to be of service" - The Hitchhiker's Guide to the Galaxy

:))

Teylyn
 
Upvote 0

Forum statistics

Threads
1,215,334
Messages
6,124,325
Members
449,154
Latest member
pollardxlsm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top