• file size explosion (2k with 2k)

    Author
    Topic
    #419944

    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?

    Viewing 1 reply thread
    Author
    Replies
    • #949608

      See post 133055 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.

      • #949773

        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

        • #949774

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

          • #949777

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

            • #949778

              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?

        • #949821

          Can you export the code and upload that?

          • #949840

            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.

    • #949609

      Hi Kevin

      Try the macros in post 133055

    Viewing 1 reply thread
    Reply To: file size explosion (2k with 2k)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: