file size becomes very big after copy

L

leungkong

I have a report, it has some data around 1300 rows, file size is around 400k.
One column is supplier name. I splite the file by company name.

I copy the data to a worksheet("TEMP") and calculate something.
after that, I copy to a new workbook.

after the process, the file size of the report change to 27.6M
I find the reason is come from sheet TEMP.
If I delete all rows in TEMP, the file size will be changed to normal.
I am sure I have clear the data in Sheet TEMP.

actually, I can use macro to delete the rows before end sub.
but I want to know the reason and delete all row spend a lot of time.

Thanks in advance
 
J

Jacob Skaria

From menu use ClearFormats under Edit|Clear and see

If this post helps click Yes
 
J

joel

You have a lot of formulas in the new book pointing to the original workbook
(or other workbooks). Before copying the Temp sheet I would copy the sheet
and then paste it back with pastespecial using values to remove the formulas.
Then the new book will end up being much smaller.
 
R

ryguy7272

On the bloated sheet, hit Ctrl+End and that will take you to the end of the
used range. Almost guaranteed, you will go very far to the right, and very
far down, from where you expect to be. This is the 'used range'. Select the
columns that are not being used, and go left until you get to the end of your
actual data. Delete this stuff. Again, select rows that are not being used,
and go up until you get to the end of your actual data. Delete this stuff.

Save and reopen you file. It should be fine now. Check the actual file
size to verify.

HTH,
Ryan---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top