Spreadsheet With No Data Is Too Big

  • I am new to the forum, and consider myslef a novice user of Excel, and need the experts to help me out. I have been stumped by a workbook that is relatively simple, one tab with data 7 others with charts; 30-days of data only.


    The workbook keeps growing and growing. Up to 9mb. Searched this site for advice on how to triage the problem; tried everything. Last resort was I deleted all spreadsheets in the workbook except the data tab. Then I deleted all columns and rows, cleared all columns and rows in the remaining tab. Now I have one blank spreadsheet in a workbook; no hidden columns, no hidden rows, no hidden sheets. The file is now 8.77mb. How can that be?????


    :(

  • Re: One Spreadsheet No Data 8.7mb???


    Quote from toecutter

    have you checked to see if the book has code in the editor?


    Not sure how to view the code editor (alt+F11?) - can you help? I did do a ctrl+end and it took me to row A79 which I found a bit odd. Does the sheet think there is something there?

  • Re: Spreadsheet With No Data Is Too Big


    Quote from toecutter

    right click on a sheet tab and select view code


    OK. I did that. There is nothing there. I realize I can just start fresh with a new workbook, but it's the mystery that's captured my attention, and I have this urge to resolve. Thank you.

  • Re: Spreadsheet With No Data Is Too Big


    Are you viewing all the worksheets? Could some be Very Hidden (which wouldn't otherwise show under the Format menu)? Try this to check for Very Hidden worksheets:


    Code
    Sub AllSheetsVisible()
    Dim sht As Worksheet
    For Each sht In Worksheets
        sht.Visible = True
    Next sht
    End Sub


    Do you use your workbook to query a database? Often, data related to the query will be retained, depending on how you set up code for your query (and particularly so if there is no code for the query), and remain hidden somewhere in Excel-land. Sometimes, data can also be shifted-over from queries. You'd then need to select the areas encompassed by the queries and delete it with code. Selecting the delete key doesn't always delete the data, and might only "clear" the contents (though the actual data could be retained in the background). I had a similar problem with a workbook, which continued to magically grow but had no more data; and this resolved the problem for me. I forget exactly how I set it up offhand, but see if something like this doesn't work on a back-up copy:


    Code
    Sub DeleteData()
        Range("A1").Select
        Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
        Selection.Delete
    Thisworkbook.save
    End Sub


    Then, check the file-size.


    Quote from wisesap

    Then I deleted all columns and rows, cleared all columns and rows in the remaining tab. Now I have one blank spreadsheet in a workbook; no hidden columns, no hidden rows, no hidden sheets. The file is now 8.77mb. How can that be?????
    :(

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!