Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default file size becomes very big after copy

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default file size becomes very big after copy

From menu use ClearFormats under Edit|Clear and see

If this post helps click Yes
--------------
Jacob Skaria


"leungkong" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default file size becomes very big after copy

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.

"Jacob Skaria" wrote:

From menu use ClearFormats under Edit|Clear and see

If this post helps click Yes
--------------
Jacob Skaria


"leungkong" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default file size becomes very big after copy

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---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"joel" wrote:

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.

"Jacob Skaria" wrote:

From menu use ClearFormats under Edit|Clear and see

If this post helps click Yes
--------------
Jacob Skaria


"leungkong" wrote:

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

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 - copy paste values only Nikki Excel Discussion (Misc queries) 1 June 22nd 09 04:54 PM
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
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 04:10 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"