Results 1 to 9 of 9
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    New England (Connecticut)
    Posts
    200
    Thanks
    1
    Thanked 0 Times in 0 Posts

    file size explosion (2k with 2k)

    Hi all,

    I have a relatively small file (started at about 25k) that I have been building some vb into (small amount i.e. 4 procedures/macros). Suddenly the file size blew up to about 20 meg. Totally confused????????? Can't find a way to compact. I know the vb is not big enough to do this. any ideas?
    Kevin

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: file size explosion (2k with 2k)

    See <post#=133055>post 133055</post#> for a way to remove unused rows and columns. You can also save (a copy of) the workbook as HTML, then save the HTML file as a workbook again.

    Even though you don't have much code, you might download and use Rob Bovey's VBA Code Cleaner.

  3. #3
    Platinum Lounger
    Join Date
    Jan 2001
    Posts
    3,788
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: file size explosion (2k with 2k)

    Hi Kevin

    Try the macros in <post#=133055>post 133055</post#>

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    New England (Connecticut)
    Posts
    200
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: file size explosion (2k with 2k)

    Thank you for the reply. I have downloaded and ran the VBA Cleaner. The file is still 20.8 megs. It consists of only 2 sheets and there are less than 100 rows and 10 columns of data on either. This file when first started was about 15k and grew to about 45k before I started writting the code. As I was writting and testing the code it rapidly grew to 20.8 meg. I know there is not any other data on the files. In fact the last time I tested the code it grew from 11meg to 20.8 meg in just a few minutes of testing. The code merely takes information from one sheet and moves it to another based on sort criteria. I am totally confused !!!!! Should I at this point just create a new file and copy all of the code into it to start fresh? Is this supposed to happen when writing and testing code?

    THank You for any help
    Kevin

  5. #5
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: file size explosion (2k with 2k)

    If you zip the file how big is it? If it is not too big, can you upload a copy?
    Legare Coleman

  6. #6
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    New England (Connecticut)
    Posts
    200
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: file size explosion (2k with 2k)

    it is 5.8 meg zipped. is that to large to attach?
    Kevin

  7. #7
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: file size explosion (2k with 2k)

    Can you export the code and upload that?
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  8. #8
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: file size explosion (2k with 2k)

    Yes, the limit is 100K.

    If you go to each sheet in the workbook and press Ctrl/End, what cell gets selected. Is the cell way down on one or more sheets?

    If you copy the code and paste it into a new workbook, does that workbook do the same thing?
    Legare Coleman

  9. #9
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    New England (Connecticut)
    Posts
    200
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: file size explosion (2k with 2k)

    I started a new workbook and cut and pasted from the old to the new. The file size came out to be around 1 meg, which is still very high considering the file is virtually empty. I am still test some code, but the size is no longer growing.
    Kevin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •